tinywan / support
common components
v0.0.1
2022-03-24 09:07 UTC
Requires
- php: >=7.4
- composer/pcre: ^3.0
- zoujingli/ip2region: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.4
- monolog/monolog: ^2.0
- phpstan/phpstan: ^1.1.0
- phpunit/phpunit: ^9.0
- symfony/console: ^5.1
- vimeo/psalm: ^4.22
README
handle with array/log/config/guzzle/function
Logger
use Tinywan\Support\Logger; $logger = new Logger(); $logger->setConfig(['file' => runtime_path().'/tinywan.log']); $logger->info('test info', ['foo' => 'bar']);
Other
composer
composer dumpautoload
phpstan
vendor/bin/phpstan analyse src
php-cs-fixer
vendor/bin/php-cs-fixer fix src
vimeo/psalm
./vendor/bin/psalm --show-info=true