PHP code example of seekerliu / laravel-readme-viewer

1. Go to this page and download the library: Download seekerliu/laravel-readme-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

seekerliu / laravel-readme-viewer example snippets


Seekerliu\Readme\Providers\ReadmeServiceProvider::class,

public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register('Seekerliu\Readme\Providers\ReadmeServiceProvider');
    }
    // ...
}

'route' => [
        'prefix' => '/readme/{packageName?}',
        'action' => 'Seekerliu\Readme\Controllers\ReadmeController@index',
        'name' => 'readme.index',
],
bash
php artisan vendor:publish --tag=readme