Package Data | |
---|---|
Maintainer Username: | jeremykenedy |
Maintainer Contact: | jeremykenedy@gmail.com (Jeremy Kenedy) |
Package Create Date: | 2018-02-03 |
Package Last Update: | 2021-01-06 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:19:48 |
Package Statistics | |
---|---|
Total Downloads: | 154,293 |
Monthly Downloads: | 1,336 |
Daily Downloads: | 31 |
Total Stars: | 44 |
Total Watchers: | 6 |
Total Forks: | 5 |
Total Open Issues: | 1 |
Table of contents:
Laravel PHP Info is a package that provides a PHPInfo() page using blade templating.
The config file can be used to enable/disable auth protection and specify the roles middleware.
| Laravel PHP Info | | :------------ | | Easily show PHPInfo() page with blade templates | | Can publish customizable views and assets | | Enable/Disable Auth middleware | | Specify additional middlewares | | configuration options | | Uses Language localization files |
composer require jeremykenedy/laravel-phpinfo
Laravel 5.5 and up
Uses package auto discovery feature, no need to edit the config/app.php
file.
Laravel 5.4 and below
Register the package with laravel in config/app.php
under providers
with the following:
'providers' => [
jeremykenedy\laravelPhpInfo\LaravelPhpInfoServiceProvider::class,
];
php artisan vendor:publish --tag=laravelPhpInfo
Laravel PHP Info can be configured in directly in /config/laravelPhpInfo.php
file.
Here is the /config/laravelPhpInfo.php
configuration options:
/*
|--------------------------------------------------------------------------
| Laravel PHP Info settings
|--------------------------------------------------------------------------
*/
// The parent blade file
'laravelPhpInfoBladeExtended' => 'layouts.app',
// Enable `auth` middleware
'authEnabled' => true,
// Enable Optional Roles Middleware
'rolesEnabled' => false,
// Optional Roles Middleware
'rolesMiddlware' => 'role:admin',
'bootstapVersion' => '4',
// Additional Card classes for styling -
// See: https://getbootstrap.com/docs/4.0/components/card/#background-and-color
// Example classes: 'text-white bg-primary mb-3'
'bootstrapCardClasses' => '',
LaravelPhpInfo
├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── composer.json
└── src
├── app
│ └── Http
│ └── Controllers
│ └── LaravelPhpInfoController.php
├── config
│ └── laravelPhpInfo.php
├── laravelPhpInfoServiceProvider.php
├── resources
│ ├── lang
│ │ └── en
│ │ └── laravel-phpinfo.php
│ └── views
│ └── phpinfo
│ └── php-info.blade.php
└── routes
└── web.php
brew install tree
tree -a -I '.git|node_modules|vendor|storage|tests
Before opening an issue there are a couple of considerations:
Open source projects are a the community’s responsibility to use, contribute, and debug.
Laravel PHP Info is licensed under the MIT license. Enjoy!