devnull-ir / facades
Laravel Facade for Pure php!
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/devnull-ir/facades
README
Facade for pure php
use
one step:
include __DIR__ . "/vendor/autoload.php";
step two:
Create Your dynamic Class
step three: Create static Facade Class for example:
<?php namespace Facades; class TestFacade extends Facade { /** * @return string */ public static function setNameSpace(): string { return Test::class; // TODO: Change the autogenerated stub } }
and show dependency:
add methods in comments in top class:
<?php namespace Facades; /** * Method for Test Class * * @method static string string() * @method static string abs() */ class TestFacade extends Facade { /** * @return string */ public static function setNameSpace(): string { return Test::class; // TODO: Change the autogenerated stub } }
facade for dynamic class extend as Facades\Facade