repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createMediaConcatTemplate.php
sample/createMediaConcatTemplate.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/CreateDatasetBinding.php
sample/CreateDatasetBinding.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/addHotLink.php
sample/addHotLink.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/openImageSlim.php
sample/openImageSlim.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/cancelLiveVideoAuditing.php
sample/cancelLiveVideoAuditing.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/getBucketAcl.php
sample/getBucketAcl.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/getPicQueueList.php
sample/getPicQueueList.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/imageDetectCarProcess.php
sample/imageDetectCarProcess.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createMediaSnapshotJobs.php
sample/createMediaSnapshotJobs.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/getAiBucketList.php
sample/getAiBucketList.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/detectWebpage.php
sample/detectWebpage.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createMediaVideoProcessTemplate.php
sample/createMediaVideoProcessTemplate.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/describeInventoryTriggerJobs.php
sample/describeInventoryTriggerJobs.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/ciTransformation.php
sample/ciTransformation.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/updateMediaWatermarkTemplate.php
sample/updateMediaWatermarkTemplate.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/listParts.php
sample/listParts.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createMediaPicProcessTemplate.php
sample/createMediaPicProcessTemplate.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/getSnapshot.php
sample/getSnapshot.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/goodsMattingProcess.php
sample/goodsMattingProcess.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/DeleteDataset.php
sample/DeleteDataset.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createDocProcessJobs.php
sample/createDocProcessJobs.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/imageProcess.php
sample/imageProcess.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/detectText.php
sample/detectText.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/createAiTranslationJobs.php
sample/createAiTranslationJobs.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
tencentyun/cos-php-sdk-v5
https://github.com/tencentyun/cos-php-sdk-v5/blob/a93c95b9c84abbb5d301e15f0e999f1db868310e/sample/getAsrBucketList.php
sample/getAsrBucketList.php
<?php require dirname(__FILE__, 2) . '/vendor/autoload.php'; $secretId = "SECRETID"; //替换为用户的 secretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $secretKey = "SECRETKEY"; //替换为用户的 secretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的r...
php
MIT
a93c95b9c84abbb5d301e15f0e999f1db868310e
2026-01-05T02:42:55.169884Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/FileSelection.php
src/FileSelection.php
<?php /** * @author Aaron Francis * @author Spatie bvba info@spatie.be * @license MIT * * @see https://github.com/spatie/laravel-backup/blob/master/src/Tasks/Backup/FileSelection.php */ namespace AaronFrancis\Airdrop; use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; class FileSelection { p...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/HashGenerator.php
src/HashGenerator.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop; use AaronFrancis\Airdrop\Contracts\TriggerContract; use Exception; class HashGenerator { protected array $triggers = []; public static function make(): static { return new static; } public...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/AirdropServiceProvider.php
src/AirdropServiceProvider.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop; use AaronFrancis\Airdrop\Commands\Debug; use AaronFrancis\Airdrop\Commands\Download; use AaronFrancis\Airdrop\Commands\Hash; use AaronFrancis\Airdrop\Commands\Install; use AaronFrancis\Airdrop\Commands\Upload; use Illum...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Drivers/BaseDriver.php
src/Drivers/BaseDriver.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Drivers; abstract class BaseDriver { protected array $config = []; protected string $hash = ''; public function setConfig(array $config): static { $this->config = $config; return $this;...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Drivers/GithubActionsDriver.php
src/Drivers/GithubActionsDriver.php
<?php /** * @author Aaron Francis <aarondfrancis@gmail.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Drivers; class GithubActionsDriver extends FilesystemDriver { public function exists(): bool { return file_exists($this->localStashPath() . $this->stashedPackageFilename()...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Drivers/FilesystemDriver.php
src/Drivers/FilesystemDriver.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Drivers; use AaronFrancis\Airdrop\FileSelection; use Exception; use Illuminate\Support\Arr; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use ZipArchive; class ...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Triggers/FileTrigger.php
src/Triggers/FileTrigger.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Triggers; use AaronFrancis\Airdrop\Contracts\TriggerContract; use AaronFrancis\Airdrop\FileSelection; use Illuminate\Support\Arr; use Illuminate\Support\Facades\File; class FileTrigger implements TriggerContract { p...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Triggers/ConfigTrigger.php
src/Triggers/ConfigTrigger.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Triggers; use AaronFrancis\Airdrop\Contracts\TriggerContract; class ConfigTrigger implements TriggerContract { public function triggerBuildWhenChanged(array $config = []): array { return $config; } }...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Contracts/TriggerContract.php
src/Contracts/TriggerContract.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Contracts; interface TriggerContract { /** * Return any state that should be considered when determining * whether or not your build process needs to run again. */ public function triggerBuildWhenC...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Concerns/MakesDrivers.php
src/Concerns/MakesDrivers.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Concerns; use AaronFrancis\Airdrop\Drivers\BaseDriver; use AaronFrancis\Airdrop\HashGenerator; use Exception; use Illuminate\Support\Arr; trait MakesDrivers { public function makeDr...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Commands/Install.php
src/Commands/Install.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Commands; use AaronFrancis\Airdrop\AirdropServiceProvider; use Illuminate\Console\Command; use Illuminate\Support\Facades\Artisan; class Install extends Command { protected $signature = 'airdrop:install'; prote...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Commands/Upload.php
src/Commands/Upload.php
<?php namespace AaronFrancis\Airdrop\Commands; use AaronFrancis\Airdrop\Concerns\MakesDrivers; use Illuminate\Console\Command; class Upload extends Command { use MakesDrivers; protected $signature = 'airdrop:upload'; protected $description = 'Run as a part of your deploy pipeline *after* assets are bui...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Commands/Hash.php
src/Commands/Hash.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Commands; use AaronFrancis\Airdrop\HashGenerator; use Illuminate\Console\Command; class Hash extends Command { protected $signature = 'airdrop:hash {--prefix=} {--putenv=}'; protected $description = 'Output the...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Commands/Download.php
src/Commands/Download.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Commands; use AaronFrancis\Airdrop\Concerns\MakesDrivers; use Illuminate\Console\Command; class Download extends Command { use MakesDrivers; protected $signature = 'airdrop:download'; protected $descriptio...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/src/Commands/Debug.php
src/Commands/Debug.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Commands; use AaronFrancis\Airdrop\HashGenerator; use Illuminate\Console\Command; use Illuminate\Support\Arr; class Debug extends Command { protected $signature = 'airdrop:debug {--trigger=}'; protected $descri...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/BaseTest.php
tests/BaseTest.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Tests; use AaronFrancis\Airdrop\AirdropServiceProvider; use Illuminate\Support\Facades\File; use Orchestra\Testbench\TestCase; abstract class BaseTest extends TestCase { protected f...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/HashCalculationTest.php
tests/HashCalculationTest.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Tests; use AaronFrancis\Airdrop\HashGenerator; use AaronFrancis\Airdrop\Triggers\ConfigTrigger; use AaronFrancis\Airdrop\Triggers\FileTrigger; use PHPUnit\Framework\Attributes\Test; class HashCalculationTest extends Bas...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/Drivers/FileSystemDriverTest.php
tests/Drivers/FileSystemDriverTest.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Tests\Drivers; use AaronFrancis\Airdrop\Concerns\MakesDrivers; use AaronFrancis\Airdrop\Tests\BaseTest; use AaronFrancis\Airdrop\Triggers\FileTrigger; use Illuminate\Support\Facades\File...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/Triggers/InputFilesTriggerTest.php
tests/Triggers/InputFilesTriggerTest.php
<?php /** * @author Aaron Francis <aaron@tryhardstudios.com> */ namespace AaronFrancis\Airdrop\Tests\Triggers; use AaronFrancis\Airdrop\Tests\BaseTest; use AaronFrancis\Airdrop\Triggers\FileTrigger; use PHPUnit\Framework\Attributes\Test; class InputFilesTriggerTest extends BaseTest { #[Test] public functi...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/Commands/HashCommandTest.php
tests/Commands/HashCommandTest.php
<?php /** * @author Aaron Francis <aarondfrancis@gmail.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Tests\Commands; use AaronFrancis\Airdrop\Tests\BaseTest; use AaronFrancis\Airdrop\Triggers\ConfigTrigger; use AaronFrancis\Airdrop\Triggers\FileTrigger; use PHPUnit\Framework\Attributes\T...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/tests/Commands/DebugCommandTest.php
tests/Commands/DebugCommandTest.php
<?php /** * @author Aaron Francis <aarondfrancis@gmail.com|https://twitter.com/aarondfrancis> */ namespace AaronFrancis\Airdrop\Tests\Commands; use AaronFrancis\Airdrop\Tests\BaseTest; use AaronFrancis\Airdrop\Triggers\ConfigTrigger; use AaronFrancis\Airdrop\Triggers\FileTrigger; use PHPUnit\Framework\Attributes\T...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
aarondfrancis/airdrop
https://github.com/aarondfrancis/airdrop/blob/ea1d3fe1d83993c1f0c1e3028fea899c2f206cca/config/airdrop.php
config/airdrop.php
<?php use AaronFrancis\Airdrop\Drivers\FilesystemDriver; use AaronFrancis\Airdrop\Drivers\GithubActionsDriver; use AaronFrancis\Airdrop\Triggers\ConfigTrigger; use AaronFrancis\Airdrop\Triggers\FileTrigger; return [ // The driver you wish to use to stash and restore your files. 'driver' => env('AIRDROP_DRIVER...
php
MIT
ea1d3fe1d83993c1f0c1e3028fea899c2f206cca
2026-01-05T02:43:14.396553Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/src/FileVaultServiceProvider.php
src/FileVaultServiceProvider.php
<?php namespace SoareCostin\FileVault; use Illuminate\Support\ServiceProvider; class FileVaultServiceProvider extends ServiceProvider { /** * Bootstrap the application services. */ public function boot() { if ($this->app->runningInConsole()) { $this->publishes([ ...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/src/FileVault.php
src/FileVault.php
<?php namespace SoareCostin\FileVault; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; class FileVault { /** * The storage disk. * * @var string */ protected $disk; /** * The encryption key. * * @var string */ protected $key; /** ...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/src/FileEncrypter.php
src/FileEncrypter.php
<?php namespace SoareCostin\FileVault; use Exception; use Illuminate\Support\Str; use RuntimeException; class FileEncrypter { /** * Define the number of blocks that should be read from the source file for each chunk. * We chose 255 because on decryption we want to read chunks of 4kb ((255 + 1)*16). ...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/src/Facades/FileVault.php
src/Facades/FileVault.php
<?php namespace SoareCostin\FileVault\Facades; use Illuminate\Support\Facades\Facade; /** * @method static mixed disk(string $disk) * @method static mixed key(string $key) * @method static mixed encrypt(string $sourceFile, string $destFile = null, $deleteSource = true) * @method static mixed encryptCopy(string $...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/tests/FileVaultTest.php
tests/FileVaultTest.php
<?php namespace SoareCostin\FileVault\Tests; use Illuminate\Support\Facades\Storage; use Orchestra\Testbench\TestCase; use SoareCostin\FileVault\Facades\FileVault; use SoareCostin\FileVault\FileVaultServiceProvider; class FileVaultTest extends TestCase { /** * Get package providers. * * @param \I...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
soarecostin/file-vault
https://github.com/soarecostin/file-vault/blob/ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5/config/config.php
config/config.php
<?php return [ /* * The default key used for all file encryption / decryption * This package will look for a FILE_VAULT_KEY in your env file * If no FILE_VAULT_KEY is found, then it will use your Laravel APP_KEY */ 'key' => env('FILE_VAULT_KEY', env('APP_KEY')), /* * The cipher us...
php
MIT
ee40ef4a3a7a23e64599a00f9ae5ff1c3b3597b5
2026-01-05T02:43:27.593410Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Log.php
user-srv/app/Log.php
<?php /** * @user: DoubleJin * @date: 2022/5/26 * @create: 14:54 */ namespace App; use Hyperf\Logger\LoggerFactory; use Hyperf\Utils\ApplicationContext; class Log { public static function get(string $name = 'app') { return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Model/User.php
user-srv/app/Model/User.php
<?php declare (strict_types=1); namespace App\Model; use Hyperf\DbConnection\Model\Model; use Qbhy\HyperfAuth\AuthAbility; use Qbhy\HyperfAuth\Authenticatable; class User extends Model implements Authenticatable { use AuthAbility; const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Model/UserBonusLog.php
user-srv/app/Model/UserBonusLog.php
<?php declare (strict_types=1); namespace App\Model; use Hyperf\DbConnection\Model\Model; class UserBonusLog extends Model { const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; protected ?string $dateFormat = 'U'; /** * The table associated with the model. * * @var ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Model/UserStoredLog.php
user-srv/app/Model/UserStoredLog.php
<?php declare (strict_types=1); namespace App\Model; use Hyperf\DbConnection\Model\Model; class UserStoredLog extends Model { const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; protected ?string $dateFormat = 'U'; /** * The table associated with the model. * * @var ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Kernel/Functions.php
user-srv/app/Kernel/Functions.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://doc.hyperf.io * @contact group@hyperf.io */ use GuzzleHttp\Exception\GuzzleException; use Hyperf\Redis\Redis; use Hyperf\Logger\LoggerFactory; use Hyperf\Utils\ApplicationContext; use Hype...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Controller/SagaController.php
user-srv/app/Controller/SagaController.php
<?php declare(strict_types=1); namespace App\Controller; use App\Services\UserService; use Hyperf\HttpServer\Contract\RequestInterface; use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\PostMapping; use Hyperf\Di\Annotation\Inject; /** * DTM.SAGA回调控制器 * Class SagaController * @package...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Controller/AbstractController.php
user-srv/app/Controller/AbstractController.php
<?php declare(strict_types=1); namespace App\Controller; use Hyperf\Di\Annotation\Inject; use Hyperf\HttpServer\Contract\RequestInterface; use Hyperf\HttpServer\Contract\ResponseInterface; use Psr\Container\ContainerInterface; abstract class AbstractController { /** * @Inject * @var ContainerInterface...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Services/AuthService.php
user-srv/app/Services/AuthService.php
<?php namespace App\Services; use App\Exception\JsonRpcException; use App\Log; use App\Model\User; use Hyperf\Di\Annotation\Inject; use Qbhy\HyperfAuth\Authenticatable; use Qbhy\HyperfAuth\AuthManager; /** * 用户service * Class AuthService * @package App\Services */ class AuthService { #[Inject] protecte...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Services/UserService.php
user-srv/app/Services/UserService.php
<?php namespace App\Services; use Hyperf\Amqp\Producer; use App\Amqp\Producer\UserProducer; use App\Exception\JsonRpcException; use App\Exception\ServiceException; use App\Log; use App\Model\User; use App\Model\UserBonusLog; use App\Model\UserStoredLog; /** * 用户service * Class UserService * @package App\Services...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/JsonRpc/UserRpcService.php
user-srv/app/JsonRpc/UserRpcService.php
<?php /** * @user: DoubleJin * @date: 2022/5/24 * @create: 09:31 */ namespace App\JsonRpc; use App\Services\AuthService; use Hyperf\RpcServer\Annotation\RpcService; use App\Services\UserService; use Hyperf\Di\Annotation\Inject; /** * 用户rpc服务 * Class OrderRpcService * @package App\JsonRpc */ #[RpcService(name...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/JsonRpc/UserRpcServiceInterface.php
user-srv/app/JsonRpc/UserRpcServiceInterface.php
<?php /** * @user: DoubleJin * @date: 2022/5/24 * @create: 09:31 */ namespace App\JsonRpc; interface UserRpcServiceInterface { public function userInfo(int $userId): array; public function userBonusList(int $page, int $pageSize): array; public function userStoredList(int $page, int $pageSize): arra...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Amqp/Producer/UserProducer.php
user-srv/app/Amqp/Producer/UserProducer.php
<?php declare(strict_types=1); namespace App\Amqp\Producer; use Hyperf\Amqp\Annotation\Producer; use Hyperf\Amqp\Message\ProducerMessage; /** * 用户订阅消息生产者 * Class UserProducer * @package App\Amqp\Producer */ #[Producer(exchange: 'user', routingKey: 'user')] class UserProducer extends ProducerMessage { public...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Exception/ServiceException.php
user-srv/app/Exception/ServiceException.php
<?php declare(strict_types=1); namespace App\Exception; use App\Constants\ErrorCode; use Hyperf\Server\Exception\ServerException; use Throwable; class ServiceException extends ServerException { public function __construct(int $code = 0, string $message = null, Throwable $previous = null) { if (is_nu...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Exception/JsonRpcException.php
user-srv/app/Exception/JsonRpcException.php
<?php declare(strict_types=1); namespace App\Exception; use App\Constants\ErrorCode; use Hyperf\Server\Exception\ServerException; use Throwable; class JsonRpcException extends ServerException { public function __construct(int $code = 0, string $message = null, Throwable $previous = null) { if (is_nu...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Exception/Handler/JsonRpcExceptionHandler.php
user-srv/app/Exception/Handler/JsonRpcExceptionHandler.php
<?php declare(strict_types=1); namespace App\Exception\Handler; use App\Exception\JsonRpcException; use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\ExceptionHandler\ExceptionHandler; use Hyperf\HttpMessage\Stream\SwooleStream; use Hyperf\Context\Context; use Psr\Http\Message\ResponseInterface; use Psr\Http\Mes...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Exception/Handler/DtmExceptionHandler.php
user-srv/app/Exception/Handler/DtmExceptionHandler.php
<?php declare(strict_types=1); namespace App\Exception\Handler; use App\Exception\JsonRpcException; use App\Exception\ServiceException; use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\ExceptionHandler\ExceptionHandler; use Hyperf\HttpMessage\Stream\SwooleStream; use Hyperf\Utils\Context; use Psr\Http\Message\R...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Listener/DbQueryExecutedListener.php
user-srv/app/Listener/DbQueryExecutedListener.php
<?php declare(strict_types=1); namespace App\Listener; use Hyperf\Database\Events\QueryExecuted; use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Logger\LoggerFactory; use Hyperf\Utils\Arr; use Hyperf\Utils\Str; use Psr\Container\ContainerInterface; use Psr\Log\LoggerInte...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Constants/ResponseCode.php
user-srv/app/Constants/ResponseCode.php
<?php namespace App\Constants; use Hyperf\Constants\AbstractConstants; use Hyperf\Constants\Annotation\Constants; /** * @Constants */ class ResponseCode extends AbstractConstants { /** * @Message("请求错误"); */ const ERROR = 0; /** * @Message("成功"); */ const SUCCESS = 200; /...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/app/Constants/ErrorCode.php
user-srv/app/Constants/ErrorCode.php
<?php declare(strict_types=1); namespace App\Constants; use Hyperf\Constants\AbstractConstants; use Hyperf\Constants\Annotation\Constants; /** * @Constants */ class ErrorCode extends AbstractConstants { /** * @Message("Server Error!") */ const SERVER_ERROR = 500; }
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/test/HttpTestCase.php
user-srv/test/HttpTestCase.php
<?php declare(strict_types=1); namespace HyperfTest; use Hyperf\Testing\Client; use PHPUnit\Framework\TestCase; /** * Class HttpTestCase. * @method get($uri, $data = [], $headers = []) * @method post($uri, $data = [], $headers = []) * @method json($uri, $data = [], $headers = []) * @method file($uri, $data = [...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/test/bootstrap.php
user-srv/test/bootstrap.php
<?php declare(strict_types=1); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(E_ALL); date_default_timezone_set('Asia/Shanghai'); ! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1)); ! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_A...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/test/Cases/ExampleTest.php
user-srv/test/Cases/ExampleTest.php
<?php declare(strict_types=1); namespace HyperfTest\Cases; use HyperfTest\HttpTestCase; /** * @internal * @coversNothing */ class ExampleTest extends HttpTestCase { public function testExample() { $this->assertTrue(true); $this->assertTrue(is_array($this->get('/'))); } }
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/bin/hyperf.php
user-srv/bin/hyperf.php
#!/usr/bin/env php <?php ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); ini_set('memory_limit', '1G'); error_reporting(E_ALL); ! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1)); ! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL); require BASE_P...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/migrations/2022_06_08_072031_create_user_table.php
user-srv/migrations/2022_06_08_072031_create_user_table.php
<?php use Hyperf\Database\Schema\Schema; use Hyperf\Database\Schema\Blueprint; use Hyperf\Database\Migrations\Migration; class CreateUserTable extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('user', function (Blueprint $table) { $t...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/migrations/2022_06_08_072120_create_user_bonus_log_table.php
user-srv/migrations/2022_06_08_072120_create_user_bonus_log_table.php
<?php use Hyperf\Database\Schema\Schema; use Hyperf\Database\Schema\Blueprint; use Hyperf\Database\Migrations\Migration; class CreateUserBonusLogTable extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('user_bonus_log', function (Blueprint $table...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/migrations/2022_06_08_072134_create_user_stored_log_table.php
user-srv/migrations/2022_06_08_072134_create_user_stored_log_table.php
<?php use Hyperf\Database\Schema\Schema; use Hyperf\Database\Schema\Blueprint; use Hyperf\Database\Migrations\Migration; class CreateUserStoredLogTable extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('user_stored_log', function (Blueprint $tab...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/config.php
user-srv/config/config.php
<?php declare(strict_types=1); use Hyperf\Contract\StdoutLoggerInterface; use Psr\Log\LogLevel; return [ 'app_name' => env('APP_NAME', 'skeleton'), 'app_env' => env('APP_ENV', 'dev'), 'scan_cacheable' => env('SCAN_CACHEABLE', false), StdoutLoggerInterface::class => [ 'log_level' => [ ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/routes.php
user-srv/config/routes.php
<?php declare(strict_types=1); use Hyperf\HttpServer\Router\Router; Router::get('/favicon.ico', function () { return ''; });
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/container.php
user-srv/config/container.php
<?php /** * Initialize a dependency injection container that implemented PSR-11 and return the container. */ declare(strict_types=1); use Hyperf\Di\Container; use Hyperf\Di\Definition\DefinitionSourceFactory; use Hyperf\Utils\ApplicationContext; $container = new Container((new DefinitionSourceFactory(true))()); i...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/nacos.php
user-srv/config/autoload/nacos.php
<?php declare(strict_types=1); return [ // nacos server url like https://nacos.hyperf.io, Priority is higher than host:port // 'url' => '', // The nacos host info 'host' => env('NACOS_HOST'), 'port' => env('NACOS_PORT'), // The nacos account info 'username' => env('NACOS_USERNAME'), 'p...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/commands.php
user-srv/config/autoload/commands.php
<?php declare(strict_types=1); return [ ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/dtm.php
user-srv/config/autoload/dtm.php
<?php declare(strict_types=1); /** * This file is part of DTM-PHP. * * @license https://github.com/dtm-php/dtm-client/blob/master/LICENSE */ use DtmClient\Constants\Protocol; use DtmClient\Constants\DbType; return [ 'protocol' => Protocol::HTTP, 'server' => '127.0.0.1', 'port' => [ 'http' => ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/logger.php
user-srv/config/autoload/logger.php
<?php declare(strict_types=1); return [ 'default' => [ 'handler' => [ 'class' => Monolog\Handler\RotatingFileHandler::class, 'constructor' => [ 'filename' => BASE_PATH . '/runtime/logs/hyperf.log', 'level' => Monolog\Logger::DEBUG, ], ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/listeners.php
user-srv/config/autoload/listeners.php
<?php declare(strict_types=1); return [ ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/devtool.php
user-srv/config/autoload/devtool.php
<?php declare(strict_types=1); return [ 'generator' => [ 'amqp' => [ 'consumer' => [ 'namespace' => 'App\\Amqp\\Consumer', ], 'producer' => [ 'namespace' => 'App\\Amqp\\Producer', ], ], 'aspect' => [ ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/cache.php
user-srv/config/autoload/cache.php
<?php declare(strict_types=1); return [ 'default' => [ 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 'prefix' => 'c:', ], ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/middlewares.php
user-srv/config/autoload/middlewares.php
<?php declare(strict_types=1); return [ 'http' => [ \DtmClient\Middleware\DtmMiddleware::class, ], 'jsonrpc-http' => [ \Hyperf\Tracer\Middleware\TraceMiddleware::class, \DtmClient\Middleware\DtmMiddleware::class, ], ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/annotations.php
user-srv/config/autoload/annotations.php
<?php declare(strict_types=1); return [ 'scan' => [ 'paths' => [ BASE_PATH . '/app', ], 'ignore_annotations' => [ 'mixin', ], ], ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/aspects.php
user-srv/config/autoload/aspects.php
<?php declare(strict_types=1); return [ Hyperf\Tracer\Aspect\JsonRpcAspect::class, ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/services.php
user-srv/config/autoload/services.php
<?php /** * @user: DoubleJin * @date: 2022/5/24 * @create: 09:35 */ return [ 'enable' => [ // 开启服务发现 'discovery' => true, // 开启服务注册 'register' => true, ], // 服务消费者相关配置 'consumers' => [], // 服务提供者相关配置 'providers' => [], // 服务驱动相关配置 'drivers' => [ ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/dependencies.php
user-srv/config/autoload/dependencies.php
<?php declare(strict_types=1); return [ ];
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/amqp.php
user-srv/config/autoload/amqp.php
<?php declare(strict_types=1); return [ 'default' => [ 'host' => env('AMQP_HOST', 'localhost'), 'port' => (int) env('AMQP_PORT', 5672), 'user' => env('AMQP_USER', 'guest'), 'password' => env('AMQP_PASSWORD', 'guest'), 'vhost' => env('AMQP_VHOST', '/'), 'open_ssl' =>...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/redis.php
user-srv/config/autoload/redis.php
<?php declare(strict_types=1); return [ 'default' => [ 'host' => env('REDIS_HOST', 'localhost'), 'auth' => env('REDIS_AUTH', null), 'port' => (int) env('REDIS_PORT', 6379), 'db' => (int) env('REDIS_DB', 0), 'pool' => [ 'min_connections' => 1, 'max_co...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/server.php
user-srv/config/autoload/server.php
<?php declare(strict_types=1); use Hyperf\Server\Event; use Hyperf\Server\Server; use Swoole\Constant; return [ 'mode' => SWOOLE_PROCESS, 'servers' => [ [ 'name' => 'http', 'type' => Server::SERVER_HTTP, 'host' => '0.0.0.0', 'port' => 9503, ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/databases.php
user-srv/config/autoload/databases.php
<?php declare(strict_types=1); return [ 'default' => [ 'driver' => env('DB_DRIVER', 'mysql'), 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', 3306), 'database' => env('DB_DATABASE', 'hyperf'), 'username' => env('DB_USERNAME', 'root'), 'password' => e...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/opentracing.php
user-srv/config/autoload/opentracing.php
<?php declare(strict_types=1); use Zipkin\Samplers\BinarySampler; return [ 'default' => env('TRACER_DRIVER', 'zipkin'), 'enable' => [ 'guzzle' => env('TRACER_ENABLE_GUZZLE', false), 'redis' => env('TRACER_ENABLE_REDIS', false), 'db' => env('TRACER_ENABLE_DB', false), 'method' ...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false
Double-Jin/jin-microservices
https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/exceptions.php
user-srv/config/autoload/exceptions.php
<?php declare(strict_types=1); return [ 'handler' => [ 'http' => [ Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, App\Exception\Handler\DtmExceptionHandler::class, ], 'jsonrpc-http' => [ App\Exception\Handler\JsonRpcExceptionHandler::cl...
php
MIT
15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a
2026-01-05T02:43:47.435515Z
false