Wallogit.com
2017 © Pedro PelΓ‘ez
phpinfo() in a pretty Laravel blade template
, (*1)
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., (*2)
Table of contents: - Features - Requirements - Installation Instructions - Configuration - Route - Screenshot - File Tree - Opening an Issue - License, (*4)
| 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., (*5)
Laravel 5.4 and below
Register the package with laravel in config/app.php under providers with the following:, (*6)
'providers' => [
jeremykenedy\laravelPhpInfo\LaravelPhpInfoServiceProvider::class,
];
php artisan vendor:publish --tag=laravelPhpInfo
Laravel PHP Info can be configured in directly in /config/laravelPhpInfo.php file., (*7)
Here is the /config/laravelPhpInfo.php configuration options:, (*8)
/* |-------------------------------------------------------------------------- | 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' => '',
, (*9)
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: * You are all awesome! * Read the instructions and make sure all steps were followed correctly. * Check that the issue is not specific to your development environment setup. * Provide duplication steps. * Attempt to look into the issue, and if you have a solution, make a pull request. * Show that you have made an attempt to look into the issue. * Check to see if the issue you are reporting is a duplicate of a previous reported issue. * Following these instructions show me that you have tried. * If you have a questions send me an email to jeremykenedy@gmail.com * Need some help, I can do my best on Slack: https://opensourcehelpgroup.slack.com * Please be considerate that this is an open source project that I provide to the community for FREE when openeing an issue., (*10)
Open source projects are a the communityβs responsibility to use, contribute, and debug., (*11)
Laravel PHP Info is licensed under the MIT license. Enjoy!, (*12)