friendsofwebso / facade
v2.7.1
2025-02-14 09:15 UTC
Requires
- illuminate/cache: *
- illuminate/config: *
- illuminate/container: *
- illuminate/cookie: *
- illuminate/encryption: *
- illuminate/events: *
- illuminate/filesystem: *
- illuminate/hashing: *
- illuminate/http: *
- illuminate/routing: *
- illuminate/session: *
- illuminate/support: *
- illuminate/validation: *
- illuminate/view: *
- league/flysystem: *
- phpoption/phpoption: *
- symfony/error-handler: *
- symfony/http-kernel: *
- symfony/var-dumper: *
- vlucas/phpdotenv: *
Requires (Dev)
- pestphp/pest: ^2.34
README
Install
composer require friendsofwebso/facade
Use
- Paste to end file bootstrap.php
- Old Document
use Illuminate\Filesystem\Filesystem; use Websovn\Facades\LaraApp; require_once 'vendor/autoload.php'; $laraApp = new LaraApp( dirname(__DIR__), [ 'File', 'Response', 'Storage', 'Validator', 'Http', 'Request', 'URL', 'Date', ] ); // Đăng ký Smarty (nếu cần) $laraApp->withSmartyRegister(); /** * Tạo File providers.php để tải thêm dịch vụ (nếu có) */ // foreach ((new Filesystem())->requireOnce(__DIR__.'/providers.php') as $provider) { // $laraApp->registerDeferredProvider($provider); // } $laraApp->bootstrap();
- providers.php
<?php return [ PipelineServiceProvider::class, ];