Git Product home page Git Product logo

laravel-readme-viewer's Introduction

Laravel 5 Packages's Readme File(Docs) Viewer

This package generates a html page that you can see all of your packages's readme file, So you no longer need to go to each package's homepage to find documents。

Preview

Packages Readmes Viewer

Install

Require this package with composer using the following command:

composer require seekerliu/laravel-readme-viewer

After updating composer, add the service provider to the providers array in config/app.php

Seekerliu\Readme\Providers\ReadmeServiceProvider::class,

To install this package on only development systems, add the --dev flag to your composer command:

composer require --dev seekerliu/laravel-readme-viewer

In Laravel, instead of adding the service provider in the config/app.php file, you can add the following code to your app/Providers/AppServiceProvider.php file, within the register() method:

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

This will allow your application to load the Laravel 5 Packages's Readme File(Docs) Viewer on non-production enviroments.

Usage

You can now view all the docs of your packages in your browser by follow url.

http://yoursite.app/readme

Custom Route

If you need to custom route, you need to publish config file first

php artisan vendor:publish --tag=readme

Then you can change route in '/config/readme.php'

'route' => [
        'prefix' => '/readme/{packageName?}',
        'action' => 'Seekerliu\Readme\Controllers\ReadmeController@index',
        'name' => 'readme.index',
],

License

The Laravel 5 Packages's Readme File(Docs) Viewer is open-sourced software licensed under the MIT license

laravel-readme-viewer's People

Contributors

seekerliu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.