Home

Awesome

Laravel PHP Info

Laravel PHP Info

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.

Latest Stable Version Total Downloads StyleCI Travis-CI Build License: MIT

Table of contents:

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

Requirements

Installation Instructions

  1. From your projects root folder in terminal run:
    composer require jeremykenedy/laravel-phpinfo
  1. Register the package
    'providers' => [
        jeremykenedy\laravelPhpInfo\LaravelPhpInfoServiceProvider::class,
    ];
  1. 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

Configuration

Laravel PHP Info can be configured in directly in /config/laravelPhpInfo.php file.

Config 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'          => '',

Route

Screenshot

PHP Info page

File Tree

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

Opening an Issue

Before opening an issue there are a couple of considerations:

Open source projects are a the community’s responsibility to use, contribute, and debug.

License

Laravel PHP Info is licensed under the MIT license. Enjoy!