gioco-plus / prism-plus
Installs: 21 610
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- gioco-plus/hyperf-cors: dev-master
- gioco-plus/hyperf-jwt-auth: dev-master
- gioco-plus/hyperf-mongodb: dev-master
- gioco-plus/prism-const: dev-master
- gioco-plus/record-contract: dev-master
- gioco-plus/transaction-contract: ~1.3.0
- hyperf/guzzle: ^2.0
- hyperf/json-rpc: ^2.0.0
- hyperf/redis: ^2.0.0
- hyperf/rpc: ^2.0.0
- hyperf/rpc-client: ^2.0.0
- hyperf/rpc-server: ^2.0.0
- hyperf/validation: ^2.0
- psr/container: ^1.0|^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- hyperf/devtool: ^2.0.0
- hyperf/testing: ^2.0.0
- hyperf/watcher: ^2.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- swoole/ide-helper: ^4.5
This package is auto-updated.
Last update: 2024-12-12 09:35:33 UTC
README
安裝
composer require "gioco-plus/prism-plus"
php bin/hyperf.php vendor:publish "gioco-plus/prism-const"
偏好設定
php bin/hyperf.php vendor:publish "gioco-plus/prism-plus"
快取
# 依赖注入 /** * 快取 * @Inject() * @var CacheService */ protected $cache; /** * 清除快取 * @Inject() * @var CacheFlushService */ protected $cacheFlush;
# 配置MongoDb連線 /** * @Inject() * @var DbManager */ protected $dbManger; # 使用 $this->dbManger->opMongoDb('gf')->insert("hyperf_test", [ 'aaa'=>'a', 'bbb'=>'b', 'ccc'=>'c' ]); # 獲取Config $this->config->get("mongodb.{$confName}");
2021