wallet:用于 PHP 应用程序的钱包-源码

上传者: 42132056 | 上传时间: 2021-06-02 20:02:45 | 文件大小: 30KB | 文件类型: ZIP
PHP
钱包 钱包允许您为用户维护信用。 安装 要安装该软件包,请在 composer.json 中包含以下内容。 "owlgrin/wallet": "dev-master" 然后在您的 app.php 中包含以下服务提供者。 'Owlgrin\Wallet\WalletServiceProvider' 最后,发布配置。 php artisan config:publish owlgrin/wallet 用法 在您的工匠中编写此命令以创建迁移 php artisan wallet:table 现在将所有表迁移到您的 mysql 数据库 php artisan migrate 你可以通过写来启动钱包 Wallet::user($userId) 其中$userId是您用户的唯一 ID 学分 您可以添加用户的信用 Wallet::credits($credits, $redemp

文件下载

资源详情

[{"title":"( 46 个子文件 30KB ) wallet:用于 PHP 应用程序的钱包-源码","children":[{"title":"wallet-master","children":[{"title":".gitignore <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"public","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"tests","children":[{"title":"TransactionTest.php <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"BalanceTest.php <span style='color:#111;'> 9.48KB </span>","children":null,"spread":false},{"title":"CouponTest.php <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false},{"title":"RedemptionTest.php <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"Commands","children":[{"title":"AddCouponCommandTest.php <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"CreditTest.php <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"TestCase.php <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":true},{"title":"phpunit.xml <span style='color:#111;'> 582B </span>","children":null,"spread":false},{"title":"composer.json <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"stubs","children":[{"title":"migration.stub <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"config.php <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true},{"title":"Owlgrin","children":[{"title":"Wallet","children":[{"title":"Transaction","children":[{"title":"MaxRedemptionTransactionMaker.php <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"DbTransactionRepo.php <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"SimpleAmountTransactionMaker.php <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"SimpleRedemptionTransactionMaker.php <span style='color:#111;'> 297B </span>","children":null,"spread":false},{"title":"AmountTransactionMaker.php <span style='color:#111;'> 145B </span>","children":null,"spread":false},{"title":"RedemptionTransactionMaker.php <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"TransactionRepo.php <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":"TransactionMaker.php <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"AbstractTransactionMaker.php <span style='color:#111;'> 516B </span>","children":null,"spread":false}],"spread":true},{"title":"Exceptions","children":[{"title":"EmptyWalletException.php <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":"CouponExistsException.php <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"CouponLimitReachedException.php <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"WalletNotCreatedException.php <span style='color:#111;'> 433B </span>","children":null,"spread":false},{"title":"Exception.php <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"InvalidTransactionException.php <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"InternalException.php <span style='color:#111;'> 385B </span>","children":null,"spread":false}],"spread":true},{"title":"Wallet","children":[{"title":"DbWalletRepo.php <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"WalletRepo.php <span style='color:#111;'> 67B </span>","children":null,"spread":false}],"spread":false},{"title":"WalletServiceProvider.php <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"Coupon","children":[{"title":"DbCouponRepo.php <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"CouponRepo.php <span style='color:#111;'> 66B </span>","children":null,"spread":false}],"spread":false},{"title":"Commands","children":[{"title":"AddCouponForUserCommand.php <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"WalletTableCommand.php <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"AddCouponCommand.php <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"AddCreditsCommand.php <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"Wallet.php <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"WalletFacade.php <span style='color:#111;'> 281B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"lang","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"en","children":[{"title":"exception.php <span style='color:#111;'> 427B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 197B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明