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
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/SymlinkResult.php
app/sdk/oss/src/OSS/Result/SymlinkResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; use OSS\OssClient; /** * * @package OSS\Result */ class SymlinkResult extends Result { /** * @return string * @throws OssException */ protected function parseDataFromResponse() { $this->rawResponse->header[OssClient::OSS_SYM...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/ListPartsResult.php
app/sdk/oss/src/OSS/Result/ListPartsResult.php
<?php namespace OSS\Result; use OSS\Model\ListPartsInfo; use OSS\Model\PartInfo; /** * Class ListPartsResult * @package OSS\Result */ class ListPartsResult extends Result { /** * Parse the xml data returned by the ListParts interface * * @return ListPartsInfo */ protected function par...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLifecycleResult.php
app/sdk/oss/src/OSS/Result/GetLifecycleResult.php
<?php namespace OSS\Result; use OSS\Model\LifecycleConfig; /** * Class GetLifecycleResult * @package OSS\Result */ class GetLifecycleResult extends Result { /** * Parse the LifecycleConfig object from the response * * @return LifecycleConfig */ protected function parseDataFromRespons...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/CopyObjectResult.php
app/sdk/oss/src/OSS/Result/CopyObjectResult.php
<?php namespace OSS\Result; /** * Class CopyObjectResult * @package OSS\Result */ class CopyObjectResult extends Result { /** * @return array() */ protected function parseDataFromResponse() { $body = $this->rawResponse->body; $xml = simplexml_load_string($body); $res...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/Result.php
app/sdk/oss/src/OSS/Result/Result.php
<?php namespace OSS\Result; use OSS\Core\OssException; use OSS\Http\ResponseCore; /** * Class Result, The result class of The operation of the base class, different requests in dealing with the return of data have different logic, * The specific parsing logic postponed to subclass implementation * * @package OS...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/InitiateMultipartUploadResult.php
app/sdk/oss/src/OSS/Result/InitiateMultipartUploadResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * Class initiateMultipartUploadResult * @package OSS\Result */ class InitiateMultipartUploadResult extends Result { /** * Get uploadId in result and return * * @throws OssException * @return string */ protected function p...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetRefererResult.php
app/sdk/oss/src/OSS/Result/GetRefererResult.php
<?php namespace OSS\Result; use OSS\Model\RefererConfig; /** * Class GetRefererResult * @package OSS\Result */ class GetRefererResult extends Result { /** * Parse RefererConfig data * * @return RefererConfig */ protected function parseDataFromResponse() { $content = $this-...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/UploadPartResult.php
app/sdk/oss/src/OSS/Result/UploadPartResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * Class UploadPartResult * @package OSS\Result */ class UploadPartResult extends Result { /** * 结果中part的ETag * * @return string * @throws OssException */ protected function parseDataFromResponse() { $header = $...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLiveChannelStatusResult.php
app/sdk/oss/src/OSS/Result/GetLiveChannelStatusResult.php
<?php namespace OSS\Result; use OSS\Model\GetLiveChannelStatus; class GetLiveChannelStatusResult extends Result { /** * @return */ protected function parseDataFromResponse() { $content = $this->rawResponse->body; $channelList = new GetLiveChannelStatus(); $channelList->p...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLoggingResult.php
app/sdk/oss/src/OSS/Result/GetLoggingResult.php
<?php namespace OSS\Result; use OSS\Model\LoggingConfig; /** * Class GetLoggingResult * @package OSS\Result */ class GetLoggingResult extends Result { /** * Parse LoggingConfig data * * @return LoggingConfig */ protected function parseDataFromResponse() { $content = $this-...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/PutLiveChannelResult.php
app/sdk/oss/src/OSS/Result/PutLiveChannelResult.php
<?php namespace OSS\Result; use OSS\Model\LiveChannelInfo; class PutLiveChannelResult extends Result { protected function parseDataFromResponse() { $content = $this->rawResponse->body; $channel = new LiveChannelInfo(); $channel->parseFromXml($content); return $channel; } }...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/AclResult.php
app/sdk/oss/src/OSS/Result/AclResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * The type of the return value of getBucketAcl, it wraps the data parsed from xml. * * @package OSS\Result */ class AclResult extends Result { /** * @return string * @throws OssException */ protected function parseDataFromResponse(...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLocationResult.php
app/sdk/oss/src/OSS/Result/GetLocationResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * Class GetLocationResult getBucketLocation interface returns the result class, encapsulated * The returned xml data is parsed * * @package OSS\Result */ class GetLocationResult extends Result { /** * Parse data from response * * @re...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetStorageCapacityResult.php
app/sdk/oss/src/OSS/Result/GetStorageCapacityResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * Class AclResult GetBucketAcl interface returns the result class, encapsulated * The returned xml data is parsed * * @package OSS\Result */ class GetStorageCapacityResult extends Result { /** * Parse data from response * * @return ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/CallbackResult.php
app/sdk/oss/src/OSS/Result/CallbackResult.php
<?php namespace OSS\Result; /** * Class CallbackResult * @package OSS\Result */ class CallbackResult extends PutSetDeleteResult { protected function isResponseOk() { $status = $this->rawResponse->status; if ((int)(intval($status) / 100) == 2 && (int)(intval($status)) !== 203) { ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLiveChannelInfoResult.php
app/sdk/oss/src/OSS/Result/GetLiveChannelInfoResult.php
<?php namespace OSS\Result; use OSS\Model\GetLiveChannelInfo; class GetLiveChannelInfoResult extends Result { /** * @return */ protected function parseDataFromResponse() { $content = $this->rawResponse->body; $channelList = new GetLiveChannelInfo(); $channelList->parseFr...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetLiveChannelHistoryResult.php
app/sdk/oss/src/OSS/Result/GetLiveChannelHistoryResult.php
<?php namespace OSS\Result; use OSS\Model\GetLiveChannelHistory; class GetLiveChannelHistoryResult extends Result { /** * @return */ protected function parseDataFromResponse() { $content = $this->rawResponse->body; $channelList = new GetLiveChannelHistory(); $channelList...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/ListLiveChannelResult.php
app/sdk/oss/src/OSS/Result/ListLiveChannelResult.php
<?php namespace OSS\Result; use OSS\Model\LiveChannelListInfo; class ListLiveChannelResult extends Result { protected function parseDataFromResponse() { $content = $this->rawResponse->body; $channelList = new LiveChannelListInfo(); $channelList->parseFromXml($content); return ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/GetCnameResult.php
app/sdk/oss/src/OSS/Result/GetCnameResult.php
<?php namespace OSS\Result; use OSS\Model\CnameConfig; class GetCnameResult extends Result { /** * @return CnameConfig */ protected function parseDataFromResponse() { $content = $this->rawResponse->body; $config = new CnameConfig(); $config->parseFromXml($content); ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/AppendResult.php
app/sdk/oss/src/OSS/Result/AppendResult.php
<?php namespace OSS\Result; use OSS\Core\OssException; /** * Class AppendResult * @package OSS\Result */ class AppendResult extends Result { /** * Get the value of next-append-position from append's response headers * * @return int * @throws OssException */ protected function pars...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/DeleteObjectsResult.php
app/sdk/oss/src/OSS/Result/DeleteObjectsResult.php
<?php namespace OSS\Result; /** * Class DeleteObjectsResult * @package OSS\Result */ class DeleteObjectsResult extends Result { /** * @return array() */ protected function parseDataFromResponse() { $body = $this->rawResponse->body; $xml = simplexml_load_string($body); ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/ExistResult.php
app/sdk/oss/src/OSS/Result/ExistResult.php
<?php namespace OSS\Result; /** * Class ExistResult checks if bucket or object exists, according to the http status in response headers. * @package OSS\Result */ class ExistResult extends Result { /** * @return bool */ protected function parseDataFromResponse() { return intval($this->...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Result/PutSetDeleteResult.php
app/sdk/oss/src/OSS/Result/PutSetDeleteResult.php
<?php namespace OSS\Result; /** * Class PutSetDeleteResult * @package OSS\Result */ class PutSetDeleteResult extends Result { /** * @return array() */ protected function parseDataFromResponse() { $body = array('body' => $this->rawResponse->body); return array_merge($this->raw...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Core/OssException.php
app/sdk/oss/src/OSS/Core/OssException.php
<?php namespace OSS\Core; /** * Class OssException * * This is the class that OSSClient is expected to thrown, which the caller needs to handle properly. * It has the OSS specific errors which is useful for troubleshooting. * * @package OSS\Core */ class OssException extends \Exception { private $details =...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Core/MimeTypes.php
app/sdk/oss/src/OSS/Core/MimeTypes.php
<?php namespace OSS\Core; /** * Class MimeTypes * * The map of a file's extention name to its corresponding Content-Type value in the file upload request. * If the file extention name is not predefined in this class, getMimetype() returns null. * * @package OSS\Core */ class MimeTypes { /** * Get the ...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/app/sdk/oss/src/OSS/Core/OssUtil.php
app/sdk/oss/src/OSS/Core/OssUtil.php
<?php namespace OSS\Core; /** * Class OssUtil * * Oss Util class for OssClient. The caller could use it for formating the result from OssClient. * * @package OSS */ class OssUtil { const OSS_CONTENT = 'content'; const OSS_LENGTH = 'length'; const OSS_HEADERS = 'headers'; const OSS_MAX_OBJECT_GRO...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/admin/ajax.php
admin/ajax.php
<?php error_reporting(0); // 关闭错误提示 date_default_timezone_set('Asia/Shanghai'); header('Content-Type: text/html; charset=UTF-8'); require_once '../app/class/Amoli.class.php'; $C = new Config('../Config'); $Amoli = new Amoli(); $act = $_GET['act']; $oss = $C->get('oss'); $cos = $C->get('cos'); $user = $C->get('user'); $...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
ChinaMoli/AmoliCloud
https://github.com/ChinaMoli/AmoliCloud/blob/10278aeead93bc32a30894d654c970e63e922269/install/index.php
install/index.php
<?php error_reporting(0); // 关闭错误提示 if (file_exists('install.lock')) { echo '<div class="alert alert-warning">您已经安装过,如需重新安装请删除<font color=red> install/install.lock </font>文件后再安装!</div>'; exit; } ?> <html lang="zh-CN"> <head> <title>安装向导 - Amoli私有云</title> <meta charset="UTF-8"> <meta http-equiv="X-...
php
MIT
10278aeead93bc32a30894d654c970e63e922269
2026-01-05T04:18:01.221503Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/wp-cache-remember.php
wp-cache-remember.php
<?php /** * Plugin Name: WP Cache Remember * Plugin URI: https://github.com/stevegrunwell/wp-cache-remember * Description: Helper for the WordPress object cache and transients. * Author: Steve Grunwell * Author URI: https://stevegrunwell.com * Version: 1.1.2 * * @package SteveGrunwell\WPCacheRemember...
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/tests/test-transients.php
tests/test-transients.php
<?php /** * Tests for the transient functions. * * @package SteveGrunwell\WPCacheRemember */ /** * Transients test case. */ class TransientTest extends WP_UnitTestCase { function test_remembers_value() { $key = 'some-cache-key-' . uniqid(); $callback = function () { return uniqid(); }; $value ...
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/tests/bootstrap.php
tests/bootstrap.php
<?php /** * PHPUnit bootstrap file * * @package SteveGrunwell\WPCacheRemember */ $_tests_dir = getenv( 'WP_TESTS_DIR' ); if ( ! $_tests_dir ) { $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib'; } if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) { echo "Could not find $_t...
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/tests/test-site-transients.php
tests/test-site-transients.php
<?php /** * Tests for the site transient functions. * * @package SteveGrunwell\WPCacheRemember */ /** * Site transients test case. */ class SiteTransientTest extends WP_UnitTestCase { function test_remembers_value() { $key = 'some-cache-key-' . uniqid(); $callback = function () { return uniqid(); ...
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/tests/test-object-cache.php
tests/test-object-cache.php
<?php /** * Tests for the object cache functions. * * @package SteveGrunwell\WPCacheRemember */ /** * Object cache test case. */ class ObjectCacheTest extends WP_UnitTestCase { function test_remembers_value() { $key = 'some-cache-key-' . uniqid(); $callback = function () { return uniqid(); }; ...
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
stevegrunwell/wp-cache-remember
https://github.com/stevegrunwell/wp-cache-remember/blob/7ad1da18b1cab08e638539176961f71c2fff2ac7/tests/test-sample.php
tests/test-sample.php
<?php /** * Example test case. * * @package SteveGrunwell\WPCacheRemember */ /** * Sample test case. */ class SampleTest extends WP_UnitTestCase { /** * A single example test. */ function test_sample() { // Replace this with some actual testing code. $this->assertTrue( true ); } }
php
MIT
7ad1da18b1cab08e638539176961f71c2fff2ac7
2026-01-05T04:18:08.460582Z
false
amphp/parser
https://github.com/amphp/parser/blob/3cf1f8b32a0171d4b1bed93d25617637a77cded7/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $config = new Amp\CodeStyle\Config(); $config->getFinder() ->in(__DIR__ . '/examples') ->in(__DIR__ . '/src') ->in(__DIR__ . '/test'); $config->setCacheFile(__DIR__ . '/.php_cs.cache'); return $config;
php
MIT
3cf1f8b32a0171d4b1bed93d25617637a77cded7
2026-01-05T04:18:30.540773Z
false
amphp/parser
https://github.com/amphp/parser/blob/3cf1f8b32a0171d4b1bed93d25617637a77cded7/src/Parser.php
src/Parser.php
<?php declare(strict_types=1); namespace Amp\Parser; class Parser { /** @var \Generator<array-key, int|string|null, string, void>|null */ private ?\Generator $generator; /** @var list<string> */ private array $buffers = []; private int $bufferLength = 0; /** @var int|string|null */ priv...
php
MIT
3cf1f8b32a0171d4b1bed93d25617637a77cded7
2026-01-05T04:18:30.540773Z
false
amphp/parser
https://github.com/amphp/parser/blob/3cf1f8b32a0171d4b1bed93d25617637a77cded7/src/InvalidDelimiterError.php
src/InvalidDelimiterError.php
<?php declare(strict_types=1); namespace Amp\Parser; class InvalidDelimiterError extends \Error { public function __construct(\Generator $generator, string $prefix, ?\Throwable $previous = null) { $yielded = $generator->current(); $prefix .= \sprintf( "; %s yielded at key %s", ...
php
MIT
3cf1f8b32a0171d4b1bed93d25617637a77cded7
2026-01-05T04:18:30.540773Z
false
amphp/parser
https://github.com/amphp/parser/blob/3cf1f8b32a0171d4b1bed93d25617637a77cded7/test/ParserTest.php
test/ParserTest.php
<?php declare(strict_types=1); namespace Amp\Parser\Test; use Amp\Parser\InvalidDelimiterError; use Amp\Parser\Parser; use PHPUnit\Framework\TestCase; class ParserTest extends TestCase { public function testIntDelimiter(): void { $parser = new Parser((function () use (&$value) { $value = ...
php
MIT
3cf1f8b32a0171d4b1bed93d25617637a77cded7
2026-01-05T04:18:30.540773Z
false
amphp/parser
https://github.com/amphp/parser/blob/3cf1f8b32a0171d4b1bed93d25617637a77cded7/examples/simple-parser.php
examples/simple-parser.php
<?php declare(strict_types=1); require __DIR__ . "/../vendor/autoload.php"; use Amp\Parser\Parser; // Defines a generator that yields integers (number of bytes to read), strings (delimiter to search for), or // null (read any amount of bytes). $generator = function (callable $printer): \Generator { while (true) ...
php
MIT
3cf1f8b32a0171d4b1bed93d25617637a77cded7
2026-01-05T04:18:30.540773Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/RequestParameters.php
src/RequestParameters.php
<?php namespace Shopee; use ReflectionClass; use function array_map; use function ksort; use function lcfirst; use function method_exists; use function str_replace; use function ucwords; abstract class RequestParameters implements RequestParametersInterface { /** * @var array */ protected $paramet...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/RequestParametersInterface.php
src/RequestParametersInterface.php
<?php namespace Shopee; interface RequestParametersInterface { /** * @param array $parameters * @return $this */ public function fromArray(array $parameters); public function toArray(): array; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/RequestParameterCollection.php
src/RequestParameterCollection.php
<?php namespace Shopee; use function array_map; abstract class RequestParameterCollection implements RequestParametersInterface { protected $parameters = []; public function __construct(array $parameters = []) { $this->fromArray($parameters); } /** * @param RequestParametersInterfa...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Client.php
src/Client.php
<?php namespace Shopee; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ClientException as GuzzleClientException; use GuzzleHttp\Exception\ServerException as GuzzleServerException; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Uri; use GuzzleHttp\Psr7\Utils; use Invali...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/SignatureGeneratorInterface.php
src/SignatureGeneratorInterface.php
<?php namespace Shopee; interface SignatureGeneratorInterface { public function generateSignature(string $url, string $body): string; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/SignatureValidator.php
src/SignatureValidator.php
<?php namespace Shopee; use Psr\Http\Message\ServerRequestInterface; class SignatureValidator { protected $signatureGenerator; public function __construct(SignatureGeneratorInterface $signatureGenerator) { $this->signatureGenerator = $signatureGenerator; } public function isValid(Server...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/ResponseData.php
src/ResponseData.php
<?php namespace Shopee; use Psr\Http\Message\ResponseInterface; use function json_decode; class ResponseData { /** @var ResponseInterface */ private $response; /** @var array */ private $data; public function __construct(ResponseInterface $response) { $json = $response->getBody()->...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/SignatureGenerator.php
src/SignatureGenerator.php
<?php namespace Shopee; use function hash_hmac; class SignatureGenerator implements SignatureGeneratorInterface { private $partnerKey; public function __construct(string $partnerKey) { $this->partnerKey = $partnerKey; } public function generateSignature(string $url, string $body): strin...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/NodeAbstract.php
src/Nodes/NodeAbstract.php
<?php namespace Shopee\Nodes; use Psr\Http\Message\UriInterface; use Shopee\Client; use Shopee\RequestParameters; use Shopee\RequestParametersInterface; use Shopee\ResponseData; abstract class NodeAbstract { /** @var Client */ protected $client; public function __construct(Client $client) { ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Logistics/Logistics.php
src/Nodes/Logistics/Logistics.php
<?php namespace Shopee\Nodes\Logistics; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Logistics extends NodeAbstract { /** * Use this call to get all required param for init logistic. * * @param array|RequestParametersInterface $parameters ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Custom/Custom.php
src/Nodes/Custom/Custom.php
<?php namespace Shopee\Nodes\Custom; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Custom extends NodeAbstract { /** * Use this call for get custom API v1 * Formatted like it : '/api/v1/shop/get' * * @param $url * @param array|Reques...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/ShopCategory/ShopCategory.php
src/Nodes/ShopCategory/ShopCategory.php
<?php namespace Shopee\Nodes\ShopCategory; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class ShopCategory extends NodeAbstract { /** * Use this call to add a new collecion. * * @param array|RequestParametersInterface $parameters * @return Res...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Discount/Discount.php
src/Nodes/Discount/Discount.php
<?php namespace Shopee\Nodes\Discount; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Discount extends NodeAbstract { /** * Use this api to add shop discount activity. * * @param array|RequestParametersInterface $parameters * @return Respo...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Push/Push.php
src/Nodes/Push/Push.php
<?php namespace Shopee\Nodes\Push; use Shopee\Nodes\NodeAbstract; use Shopee\ResponseData; class Push extends NodeAbstract { /** * Use this API to get the configuration information of push service. * @param array $parameters * @return ResponseData */ public function getPushConfig($param...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Shop/Shop.php
src/Nodes/Shop/Shop.php
<?php namespace Shopee\Nodes\Shop; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Shop extends NodeAbstract { /** * Use this call to get information of shop. * * @param array|RequestParametersInterface $parameters * @return ResponseData ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Payment/Payment.php
src/Nodes/Payment/Payment.php
<?php namespace Shopee\Nodes\Payment; use Shopee\Nodes\NodeAbstract; use Shopee\ResponseData; class Payment extends NodeAbstract { /** * Use this API to get the transaction records of wallet. * @param array $parameters * @return ResponseData */ public function getTransactionList($parame...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Returns/Returns.php
src/Nodes/Returns/Returns.php
<?php namespace Shopee\Nodes\Returns; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Returns extends NodeAbstract { /** * Confirm return. * * @param array|RequestParametersInterface $parameters * @return ResponseData */ public fun...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Order/Order.php
src/Nodes/Order/Order.php
<?php namespace Shopee\Nodes\Order; use Shopee\Nodes\NodeAbstract; use Shopee\RequestParametersInterface; use Shopee\ResponseData; class Order extends NodeAbstract { /** * Use this call to retrieve detailed escrow information about one order based on OrderID. * * @param array|RequestParametersInte...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Item.php
src/Nodes/Item/Item.php
<?php namespace Shopee\Nodes\Item; use Shopee\Nodes\NodeAbstract; use Shopee\ResponseData; class Item extends NodeAbstract { /** * Use this call to add a product item. * * @param array|Parameters\Add $parameters * @return ResponseData */ public function add($parameters = []): Respons...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/DeleteVariation.php
src/Nodes/Item/Parameters/DeleteVariation.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class DeleteVariation extends RequestParameters { use ItemTrait; use VariationIdTrait; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Logistic.php
src/Nodes/Item/Parameters/Logistic.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Logistic extends RequestParameters { public function getLogisticId(): int { return $this->parameters['logistic_id']; } /** * Related to shopee.logistics.GetLogistics result.logistics.logistic_id * ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdateItem.php
src/Nodes/Item/Parameters/UpdateItem.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class UpdateItem extends RequestParameters { use ItemTrait; use CategoryIdTrait; public function getName(): string { return $this->parameters['name']; } /** * Name of the item in local language. * ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Variation.php
src/Nodes/Item/Parameters/Variation.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Variation extends RequestParameters { public function getName(): string { return $this->parameters['name']; } /** * Name of the variation that belongs to the same item.A seller can offer variations of the ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/GetItemsList.php
src/Nodes/Item/Parameters/GetItemsList.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class GetItemsList extends RequestParameters { protected $parameters = [ 'pagination_offset' => 0, 'pagination_entries_per_page' => 100, ]; public function getPaginationOffset(): int { return $this->p...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/GetItemDetail.php
src/Nodes/Item/Parameters/GetItemDetail.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class GetItemDetail extends RequestParameters { use ItemTrait; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/GetRecommendCats.php
src/Nodes/Item/Parameters/GetRecommendCats.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class GetRecommendCats extends RequestParameters { use CategoryIdTrait; public function getName(): string { return $this->parameters['name']; } /** * Name of the item in local language. * * @param...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/DeleteItemImg.php
src/Nodes/Item/Parameters/DeleteItemImg.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class DeleteItemImg extends RequestParameters { use ItemTrait; /** * @return string[]|null */ public function getImages(): ?array { return $this->parameters['images']; } /** * @param string[] ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/InitTierVariation.php
src/Nodes/Item/Parameters/InitTierVariation.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class InitTierVariation extends RequestParameters { use CategoryIdTrait; public function getTierVariation() { return $this->parameters['tier_variation']; } public function getVariation() { return $th...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdateItemImg.php
src/Nodes/Item/Parameters/UpdateItemImg.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class UpdateItemImg extends RequestParameters { use ItemTrait; /** * @return string[] */ public function getImages(): array { return $this->parameters['images']; } /** * Set the image URLs of ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/VariationsForUpdateItem.php
src/Nodes/Item/Parameters/VariationsForUpdateItem.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class VariationsForUpdateItem extends RequestParameterCollection { /** * @param VariationForUpdateItem|RequestParametersInterface $parameter * @return $this */ public fun...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdatePrice.php
src/Nodes/Item/Parameters/UpdatePrice.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class UpdatePrice extends RequestParameters { use ItemTrait; public function getPrice(): float { return $this->parameters['price']; } /** * Specify the revised price of the item. * * @param float ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Attribute.php
src/Nodes/Item/Parameters/Attribute.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Attribute extends RequestParameters { public function getAttributeId(): int { return $this->parameters['attributes_id']; } /** * @param int $attributeId * @return $this */ public function set...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Images.php
src/Nodes/Item/Parameters/Images.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class Images extends RequestParameterCollection { /** * @param Image|RequestParametersInterface $parameter * @return $this */ public function add(RequestParametersInterfa...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Image.php
src/Nodes/Item/Parameters/Image.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Image extends RequestParameters { public function getUrl(): string { return $this->parameters['url']; } /** * @param string $url * @return $this */ public function setUrl(string $url) { ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/ItemTrait.php
src/Nodes/Item/Parameters/ItemTrait.php
<?php namespace Shopee\Nodes\Item\Parameters; trait ItemTrait { public function getItemId(): int { return $this->parameters['item_id']; } /** * Set the Shopee's unique identifier for an item * * @param int $itemId * @return $this */ public function setItemId(int $...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Attributes.php
src/Nodes/Item/Parameters/Attributes.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class Attributes extends RequestParameterCollection { /** * @param Attribute|RequestParametersInterface $parameter * @return $this */ public function add(RequestParameter...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Add.php
src/Nodes/Item/Parameters/Add.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Add extends RequestParameters { use CategoryIdTrait; public function getName(): string { return $this->parameters['name']; } /** * Name of the item in local language. * * @param string $name...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/VariationIdTrait.php
src/Nodes/Item/Parameters/VariationIdTrait.php
<?php namespace Shopee\Nodes\Item\Parameters; trait VariationIdTrait { public function getVariationId(): int { return $this->parameters['variation_id']; } /** * Shopee's unique identifier for a variation of an item. * Please input the variation_id of a variation to be changed. ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/AddItemImg.php
src/Nodes/Item/Parameters/AddItemImg.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class AddItemImg extends RequestParameters { use ItemTrait; /** * @return string[] */ public function getImages(): array { return $this->parameters['images']; } /** * Set the image URLs of the...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Variations.php
src/Nodes/Item/Parameters/Variations.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class Variations extends RequestParameterCollection { /** * @param Variation|RequestParametersInterface $parameter * @return $this */ public function add(RequestParameter...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/GetAttributes.php
src/Nodes/Item/Parameters/GetAttributes.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class GetAttributes extends RequestParameters { public function getCategoryId(): int { return $this->parameters['category_id']; } /** * Set the Identify of category. * Should call shopee.item.GetCategories ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Wholesale.php
src/Nodes/Item/Parameters/Wholesale.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Wholesale extends RequestParameters { public function getMin(): int { return $this->parameters['min']; } /** * The min count of this tier wholesale. * If the wholesale is not the first one, the min co...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Wholesales.php
src/Nodes/Item/Parameters/Wholesales.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class Wholesales extends RequestParameterCollection { /** * @param Wholesale|RequestParametersInterface $parameter * @return $this */ public function add(RequestParameter...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/VariationForUpdateItem.php
src/Nodes/Item/Parameters/VariationForUpdateItem.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class VariationForUpdateItem extends RequestParameters { use VariationIdTrait; public function getName(): string { return $this->parameters['name']; } /** * Name of the variation that belongs to the same it...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdateVariationStock.php
src/Nodes/Item/Parameters/UpdateVariationStock.php
<?php namespace Shopee\Nodes\Item\Parameters; class UpdateVariationStock extends UpdateStock { use ItemTrait; use VariationIdTrait; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/AddVariations.php
src/Nodes/Item/Parameters/AddVariations.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class AddVariations extends RequestParameters { use ItemTrait; public function getVariations(): Variations { return $this->parameters['variations']; } /** * The variation of item is to list out all models o...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/CategoryIdTrait.php
src/Nodes/Item/Parameters/CategoryIdTrait.php
<?php namespace Shopee\Nodes\Item\Parameters; trait CategoryIdTrait { public function getCategoryId(): int { return $this->parameters['category_id']; } /** * Should call shopee.item.GetCategories to get category first.Related to result.categories.category_id * * @param int $cat...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdateVariationPrice.php
src/Nodes/Item/Parameters/UpdateVariationPrice.php
<?php namespace Shopee\Nodes\Item\Parameters; class UpdateVariationPrice extends UpdatePrice { use ItemTrait; use VariationIdTrait; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/InsertItemImg.php
src/Nodes/Item/Parameters/InsertItemImg.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class InsertItemImg extends RequestParameters { use ItemTrait; public function getImageUrl(): string { return $this->parameters['image_url']; } /** * Image URL of the item. * * @param string $imag...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/UpdateStock.php
src/Nodes/Item/Parameters/UpdateStock.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class UpdateStock extends RequestParameters { use ItemTrait; public function getStock(): int { return $this->parameters['stock']; } /** * Specify the updated stock quantity. * * @param int $stock ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Delete.php
src/Nodes/Item/Parameters/Delete.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameters; class Delete extends RequestParameters { use ItemTrait; }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Item/Parameters/Logistics.php
src/Nodes/Item/Parameters/Logistics.php
<?php namespace Shopee\Nodes\Item\Parameters; use Shopee\RequestParameterCollection; use Shopee\RequestParametersInterface; class Logistics extends RequestParameterCollection { /** * @param Logistic|RequestParametersInterface $parameter * @return $this */ public function add(RequestParametersI...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Nodes/Image/Image.php
src/Nodes/Image/Image.php
<?php namespace Shopee\Nodes\Image; use Shopee\Nodes\NodeAbstract; use Shopee\ResponseData; class Image extends NodeAbstract { /** * Use this optional API to pre-validate your image urls and convert them to Shopee image url to use in item * upload APIs. * This way your potential invalid urls will ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/InvalidSignatureException.php
src/Exception/InvalidSignatureException.php
<?php namespace Shopee\Exception; use Exception; class InvalidSignatureException extends Exception { }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/ApiException.php
src/Exception/Api/ApiException.php
<?php namespace Shopee\Exception\Api; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; class ApiException extends \RuntimeException { /** @var RequestInterface */ private $request; /** @var ResponseInterface|null */ private $response; /** @var array */ private ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/ServerException.php
src/Exception/Api/ServerException.php
<?php namespace Shopee\Exception\Api; class ServerException extends ApiException { }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/BadRequestException.php
src/Exception/Api/BadRequestException.php
<?php namespace Shopee\Exception\Api; /** * There are errors in the input parameters */ class BadRequestException extends ClientException { }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/Factory.php
src/Exception/Api/Factory.php
<?php namespace Shopee\Exception\Api; use GuzzleHttp\Exception\RequestException; class Factory { public static function create(string $className, RequestException $exception): ApiException { return new $className( $exception->getMessage(), $exception->getRequest(), ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/AuthException.php
src/Exception/Api/AuthException.php
<?php namespace Shopee\Exception\Api; /** * The request is not authenticated */ class AuthException extends ClientException { }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/src/Exception/Api/ClientException.php
src/Exception/Api/ClientException.php
<?php namespace Shopee\Exception\Api; class ClientException extends ApiException { }
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false
minchao/shopee-php
https://github.com/minchao/shopee-php/blob/fa0b626bc75fac3bd9b62570dc8446b1130bf3f9/tests/RequestParametersClass.php
tests/RequestParametersClass.php
<?php namespace Shopee\Tests; use Shopee\RequestParameters; class RequestParametersClass extends RequestParameters { protected $parameters = [ 'parameter' => 1, ]; public function setParameter($parameter) { $this->parameters['parameter'] = $parameter; return $this; } ...
php
BSD-3-Clause
fa0b626bc75fac3bd9b62570dc8446b1130bf3f9
2026-01-05T04:18:32.694788Z
false