forever2077 / php-helper
PHP Tool Library
v0.73.2
2023-09-12 06:06 UTC
Requires
- php: ~8.1.0
- ext-curl: *
- ext-fileinfo: *
- ext-gd: *
- ext-json: *
- ext-mbstring: *
- ext-openssl: >=1.1.0
- ext-sockets: *
- ext-sodium: *
- ext-sqlite3: *
- ext-zip: *
- adrienrn/php-mimetyper: ^0.2.2
- aimeos/map: ^3.5
- aliyuncs/oss-sdk-php: ^2.6
- amphp/amp: ^3.0
- campo/random-user-agent: ^1.3
- casbin/casbin: ^3.21
- casbin/dbal-adapter: ^2.3
- cebe/php-openapi: ^1.7
- crazycodr/standard-exceptions: ^2.4
- dompdf/dompdf: ^2.0
- donatj/phpuseragentparser: ^1.7
- douyasi/identity-card: ^2.10
- egulias/email-validator: ^3.2
- forever2077/api-php-sdk: ^4.16
- forever2077/php-random-string: ^1.0
- guzzlehttp/guzzle: ^7.7
- halaxa/json-machine: ^1.1
- hassankhan/config: ^3.1
- hyperf/pimple: ^2.2
- imangazaliev/didom: ^2.0
- intervention/image: ^2.7
- jeremykendall/php-domain-parser: ^6.3
- khanamiryan/qrcode-detector-decoder: ^2.0
- kwn/number-to-words: ^2.6
- lcobucci/jwt: ^5.0
- league/climate: ^3.8
- league/commonmark: ^2.4
- league/csv: ^9.8
- league/html-to-markdown: ^5.1
- league/oauth2-client: ^2.7
- league/oauth2-server: ^8.5
- league/omnipay: 3.2.1
- luka/network-address-types: 1.1.1
- lustre/php-dfa-sensitive: ^1.4
- markrogoyski/math-php: ^2.8
- mevdschee/php-crud-api: ^2.14
- milon/barcode: ^10.0
- monolog/monolog: ^3.4
- mouyong/translate: ^3.0
- mtdowling/jmespath.php: ^2.6
- nesbot/carbon: ^2.68
- netresearch/jsonmapper: ^4.2
- omnipay/paypal: ^3.0
- omnipay/stripe: ^3.2
- overtrue/easy-sms: ^2.5
- overtrue/pinyin: ^5.2
- overtrue/socialite: ^4.8
- patrickschur/language-detection: ^5.3
- pecee/simple-router: 5.3.0.5
- phar-io/version: ^3.2
- phenx/php-font-lib: ^0.5.4
- php-http/httplug: ^2.4
- php-http/message: ^1.16
- php-http/message-factory: ^1.1
- phpfastcache/phpfastcache: ^9.1
- phpmailer/phpmailer: ^6.7
- phpoffice/phpspreadsheet: ^1.28
- phpoffice/phpword: ^1.1
- pimple/pimple: ^3.5
- pleonasm/bloom-filter: ^1.0
- pragmarx/google2fa: ^8.0
- qcloud/cos-sdk-v5: ^2.6
- ramsey/uuid: ^4.7
- respect/validation: ^2.2
- sabre/xml: ^4.0
- seld/jsonlint: ^1.9
- smalot/pdfparser: ^2.7
- spatie/color: ^1.5
- symfony/yaml: ^6.0
- topthink/think-orm: ^3.0
- tracy/tracy: ^2.10
- twig/twig: ^3.7
- verot/class.upload.php: ^2.1
- vlucas/phpdotenv: ^5.4
- voku/anti-xss: ^4.1
- voku/arrayy: ^7.9
- voku/portable-ascii: ^2.0
- voku/portable-utf8: ^6.0
- voku/stringy: ^6.5
- w7corp/easywechat: ^6.12
- webmozart/assert: ^1.11
- wilon/php-number2chinese: ^1.0
- workerman/workerman: ^4.1
- xaboy/form-builder: ^2.0
- yansongda/pay: ~3.5.0
- zanysoft/laravel-zip: ^2.0
Requires (Dev)
- alibabacloud/sdk: ^1.8
- alipaysdk/easysdk: ^2.2
- alipaysdk/openapi: ^1.0
- forever2077/jieba-php: ^0.1.1
- phpunit/phpunit: ^9.6
- rinvex/countries: ^8.1
- tencentcloud/tencentcloud-sdk-php: ^3.0
README
安装 Install
// 初始化 composer.json composer require forever2077/php-helper --no-install // 仅安装主要依赖包,排除体积较大项目按需安装(阿里云、腾讯云、地理数据等) composer install --no-dev
辅助类 Helper
use Helpful\Helper; // 冒泡排序 Helper::algorithm()::BubbleSort([1, 3, 2, 5, 4]); // 获取内存使用情况 Helper::system()::getMemoryUsage(); // 获取当前日期时间 Helper::dateTime()::now()->toDateTimeString(); 支持所有辅助类;
文档目录
Composer 源管理工具(可选)
// 使用composer安装 composer global require slince/composer-registry-manager // 列出可用的所有镜像源 composer repo:ls // 使用镜像源 composer repo:use tencent 文档 https://github.com/slince/composer-registry-manager/blob/master/README-zh_CN.md 注意 有个别项目在某些源已不更新,可切换回composer官方源即可解决
致谢 Thank
- 项目来之各开源项目收录和整理,持续更新中ing...
许可 License
- 本项目基于MIT许可,并包含了基于Apache 2.0许可的代码