Download the PHP package anandpilania/laravel-docs without Composer
On this page you can find all versions of the php package anandpilania/laravel-docs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anandpilania/laravel-docs
More information about anandpilania/laravel-docs
Files in anandpilania/laravel-docs
Informations about the package laravel-docs
laravel-docs
Docs reader for laravel, currently supported extensions is: .md
Helpful to use it as knowledge base or faq of your project or features.
Features
- Render
.mddocs - Security: Configure access
- You can request/suggest more features
How to use
-
Install:
git:git clone https://github.com/AnandPilania/laravel-docs.git-
composer:composer install anandpilania/laravel-docs - Register
Providertoconfig/app.php: AP\Docs\ServiceProvider::class
Instead of
Facade, I usedContract, soDocscan be directly accessible to anyclass. -
Publish the
configandresources:php artisan vendor:publish
-
Configure package according to your need (
app/docs.php):disk.root=> Root path of all documents (by default: storage/app/docs)
http: Responsible for default routesprefix=> Route prefix (default: /docs)middleware=> By default,webis used as a middleware group
default' : This section responsible for rendering the defaultdoc`vendor=> Default: storage/app/docs/laravelversion=> Default: 5.4page=> Load default (installation) file while accessing //HOSTNAME/docs/laravel/5.4.index=> Defaultindexfileextension=> Currently this package supports only.md, so don't change it.
security: Limit the access ofdocsenabled=> Its up to you, to enable this feature or not.true||falsefile=> Configure the file name ofsecurityaccording to your wish. defaultsecurity.jsonAdd thissecurity.fileto thevendordirectory.
extensions:supported=> Add extensions those are supported for render (currently.md), remaning extensions will excludedexcluded=> Files containing these extensions will not displayed in the list
-
Sample
security.json(ex: /storage/docs/app/laravel/security.json):{ "roles": ["users"], "permissions": ["docs.show.versions"] }
NOTE: Default route are hard-coded to the ServiceProvider file of the package.
All versions of laravel-docs with dependencies
illuminate/filesystem Version 5.*
illuminate/http Version 5.*
illuminate/routing Version 5.*
illuminate/config Version 5.*
league/commonmark Version 0.15.*
symfony/browser-kit Version ~3.3
erusev/parsedown-extra Version 0.7.1