Table of contents:
- About
- Features
- Requirements
- Installation Instructions
- Configuration
- Route
- Screenshot
- File Tree
- License
Laravel PHP Indo 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 |
- From your projects root folder in terminal run:
composer require jeremykenedy/laravel-phpinfo
- Register the package
-
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
underproviders
with the following:
'providers' => [ jeremykenedy\laravelPhpInfo\LaravelPhpInfoServiceProvider::class, ];
- Publish the packages views, config file, assets, and language files by running the following from your projects root folder:
php artisan vendor:publish --tag=laravelPhpInfo
Laravel PHP Info can be configured in directly in /config/laravelPhpInfo.php
or in the variables in your .env
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',
/phpinfo
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
- Tree command can be installed using brew:
brew install tree
- File tree generated using command
tree -a -I '.git|node_modules|vendor|storage|tests
Laravel PHP Info is licensed under the MIT license. Enjoy!