1. Go to this page and download the library: Download xoshbin/pertuk 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/ */
xoshbin / pertuk example snippets
return [
// Root folder for documentation files (local source).
'root' => base_path('docs'),
// Source driver: 'local' (default) or 'github'.
'source' => env('PERTUK_SOURCE', 'local'),
// Per-driver configuration.
'sources' => [
'local' => [
'root' => env('PERTUK_DOCS_LOCAL_ROOT'),
],
'github' => [
'repo' => env('PERTUK_DOCS_REPO'),
'branch' => env('PERTUK_DOCS_BRANCH', 'main'),
'path' => env('PERTUK_DOCS_PATH', 'docs'),
'token' => env('PERTUK_DOCS_TOKEN'),
'cache_path' => storage_path('app/pertuk/github'),
],
],
// Locale configuration — mirrors VitePress/Starlight conventions.
// The 'root' key designates the primary locale whose files live flat
// at the docs root with no URL prefix. Secondary locales keep /{code}/.
// Omit 'root' to use classic locale-prefixed mode (docs/en/, docs/ar/).
'locales' => [
'root' => ['label' => 'English', 'lang' => 'en', 'dir' => 'ltr'],
'ar' => ['label' => 'العربية', 'lang' => 'ar', 'dir' => 'rtl'],
'ckb' => ['label' => 'کوردی (سۆرانی)', 'lang' => 'ckb', 'dir' => 'rtl'],
],
// Explicit version list. Empty = no versioning.
// e.g. ['v1.0', 'v2.0']
'versions' => [],
// Default sort order when front matter 'order' is missing.
'default_order' => 1000,
// Excluded files or folders (relative to root) for file listing.
'exclude_directories' => [
'.DS_Store',
'README.md',
],
// Cache TTL (seconds) for parsed HTML & metadata.
'cache_ttl' => 3600,
// Enable or disable the documentation system.
'enabled' => true,
// Route prefix for documentation.
'route_prefix' => 'docs',
// Route name prefix.
'route_name_prefix' => 'pertuk.docs.',
// Route middleware.
'middleware' => ['web'],
// GitHub Repo & Branch for "Edit on GitHub" links.
'github_repo' => env('PERTUK_GITHUB_REPO', 'username/repo'),
'github_branch' => env('PERTUK_GITHUB_BRANCH', 'main'),
'github_path' => null,
// Assets directory (relative to documentation root).
'assets_path' => 'assets',
// External links.
'github_url' => env('PERTUK_GITHUB_URL', ''),
'discord_url' => env('PERTUK_DISCORD_URL', ''),
];