1. Go to this page and download the library: Download affonsopaulo/manual 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/ */
affonsopaulo / manual example snippets
'route_prefix' => 'docs',
'cache_store' => env('MANUAL_CACHE_STORE'), // null → default Laravel cache store
'cache_ttl' => 3600, // seconds; null → store forever
return [
/*
|--------------------------------------------------------------------------
| Source Path
|--------------------------------------------------------------------------
| The directory the package scans for Markdown files.
| Relative paths are resolved from base_path().
*/
'source_path' => 'docs/manual',
/*
|--------------------------------------------------------------------------
| Route Prefix
|--------------------------------------------------------------------------
| The URL prefix for all documentation routes.
| Set to an empty string to serve at the application root.
*/
'route_prefix' => 'manual',
/*
|--------------------------------------------------------------------------
| Site Title
|--------------------------------------------------------------------------
| Shown in the browser tab and error pages.
*/
'site_title' => env('APP_NAME', 'Documentation'),
/*
|--------------------------------------------------------------------------
| Cache
|--------------------------------------------------------------------------
| null cache_store → the application's default cache store.
| null cache_ttl → cache forever (invalidated only by file changes).
| 0 or negative → cache bypassed (useful in development).
*/
'cache_store' => env('MANUAL_CACHE_STORE'),
'cache_ttl' => 3600,
/*
|--------------------------------------------------------------------------
| View
|--------------------------------------------------------------------------
| The Blade view used to render documentation pages.
| Publish manual-views and point this to your customized view.
*/
'view' => 'manual::page',
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
| Applied to every documentation and image route.
*/
'middleware' => ['web'],
/*
|--------------------------------------------------------------------------
| Assets
|--------------------------------------------------------------------------
| Disable if you are fully replacing the default styles and scripts.
*/
'assets' => [
'enabled' => true,
],
/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
| The JSON search index endpoint. The path is reserved while enabled.
*/
'search' => [
'enabled' => true,
'endpoint' => '_manual/search.json',
],
/*
|--------------------------------------------------------------------------
| Images
|--------------------------------------------------------------------------
| Images are served from source_path/{images.path}.
*/
'images' => [
'enabled' => true,
'path' => '_images',
'extensions' => ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'ico'],
],
];