1. Go to this page and download the library: Download stevebauman/autodoc-facades 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/ */
stevebauman / autodoc-facades example snippets
php artisan autodoc:facades app
namespace App\Facades;
/**
* @see \App\Services\ServiceManager
*/
class Service extends Facade
{
// ...
}
namespace App\Services;
class ServiceManager
{
public function all(string $param): array
{
// ...
}
}
namespace App\Console\Commands;
class GenerateFacadeDocs extends Command
{
// ...
public function handle(): int
{
return $this->call('autodoc:facades', [
'paths' => ['app'],
'--except' => ['...'],
'--only' => ['...'],
]);
}
}
namespace App\Facades;
use App\Services\ServiceManager;
/**
* @see ServiceManager
*/
class Service extends Facade
{
// ...
}
namespace App\Facades;
use App\Services\ServiceManager;
/**
* @see \App\Services\ServiceManager
*/
class Service extends Facade
{
protected function getFacadeAccessor()
{
return ServiceManager::class
}
}
namespace App\Services;
use Illuminate\Support\Traits\ForwardsCalls;
/**
* @mixin \App\Services\SomeClass
*/
class ServiceManager
{
use ForwardsCalls;
// ...
}