chentu / phplib-support
There is no license information available for the latest version (1.0.240521) of this package.
                    
                    
                                                        
    1.0.240521
    2024-05-21 06:07 UTC
Requires
- php: >=7.2
 - illuminate/database: ^8.0
 - illuminate/events: ^8.0
 - illuminate/redis: ^8.83
 - monolog/monolog: ^2.9
 - php-di/php-di: ^6.4
 - vlucas/phpdotenv: ^5.5
 
Requires (Dev)
- phpunit/phpunit: ^9.6
 - squizlabs/php_codesniffer: ^3.0
 
This package is not auto-updated.
Last update: 2025-10-27 12:18:21 UTC
README
php7.4 使用版本1.0.* php8.3使用master
phplib_support
集成redis function log
引入 \Chentu\Support\Helper::appInit(); 可是env()和laravel orm框架可用
其他地方即可使用env('key')获取参数值
一定要有
define('BASE_DIR', DIR);
cp config/db.php -> BASE_DIR . /config/db.php
修改: BASE_DIR . /config/db.php
composer.json中加入
"require": {
    "chentu/phplib-support": "^0.1"
    "chentu/phplib-support": "dev-master"
        ...
    }
...
"repositories":[    
    {    
        "type":"git",    
        "url":"https://gitee.com/tbqphplib/phplib_support.git"   
    }    
]
illuminate/events illuminate/database 依赖illuminate/support, 并有env方法