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 |
|---|---|---|---|---|---|---|---|---|
ollieza/FormIgniter | https://github.com/ollieza/FormIgniter/blob/16e781560aa5b07e41a55dafeaf07ce7a69e4a8c/application/config/constants.php | application/config/constants.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when... | php | MIT | 16e781560aa5b07e41a55dafeaf07ce7a69e4a8c | 2026-01-05T04:20:58.117652Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([__DIR__ .... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
return (new PhpCsFixer\Config())
->setFinder(
PhpCsFixer\Finder::create()
->files()
->in(__DIR__)
->name("*.php")
->ignoreVCSIgnored(true)
)
->setRules([
'@PSR2' => true,
]);
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Connection.php | src/Bigcommerce/Api/Connection.php | <?php
namespace Bigcommerce\Api;
use CurlHandle;
/**
* HTTP connection.
*/
class Connection
{
/**
* XML media type.
*/
const MEDIA_TYPE_XML = 'application/xml';
/**
* JSON media type.
*/
const MEDIA_TYPE_JSON = 'application/json';
/**
* Default urlencoded media type.
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Client.php | src/Bigcommerce/Api/Client.php | <?php
namespace Bigcommerce\Api;
use DateTime;
use Exception;
use Firebase\JWT\JWT;
/**
* Bigcommerce API Client.
*/
class Client
{
/**
* Full Store URL to connect to
*
* @var string
*/
private static $store_url;
/**
* Username to connect to the store API with
*
* @v... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | true |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/ServerError.php | src/Bigcommerce/Api/ServerError.php | <?php
namespace Bigcommerce\Api;
/**
* Raised when a server error (500+) is returned from the API.
*/
class ServerError extends Error
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/NetworkError.php | src/Bigcommerce/Api/NetworkError.php | <?php
namespace Bigcommerce\Api;
/**
* Raised if a network fault occurs.
*/
class NetworkError extends Error
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resource.php | src/Bigcommerce/Api/Resource.php | <?php
namespace Bigcommerce\Api;
class Resource
{
/**
* @var \stdClass
*/
protected $fields;
/**
* @var int
*/
protected $id;
/**
* @var string[]
*/
protected $ignoreOnCreate = array();
/**
* @var string[]
*/
protected $ignoreOnUpdate = array(... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Error.php | src/Bigcommerce/Api/Error.php | <?php
namespace Bigcommerce\Api;
/**
* Base class for API exceptions. Used if failOnError is true.
*/
class Error extends \Exception
{
/**
* @var array
*/
private $headers;
/**
* @param $message
* @param $code
* @param string[] $headers
*/
public function __construct($... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/ClientError.php | src/Bigcommerce/Api/ClientError.php | <?php
namespace Bigcommerce\Api;
/**
* Raised when a client error (400+) is returned from the API.
*/
class ClientError extends Error
{
public function __toString()
{
return "Client Error ({$this->code}): " . $this->message;
}
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Filter.php | src/Bigcommerce/Api/Filter.php | <?php
namespace Bigcommerce\Api;
/**
* Builds a query to filter the results of a collection request.
*/
class Filter
{
private $parameters;
/**
* Factory method, creates an instance of a filter.
* Used to build URLs to collection endpoints.
* @param array $filter
* @return $this
*/... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Order.php | src/Bigcommerce/Api/Resources/Order.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Order extends Resource
{
/** @var string[] */
protected $fieldMap = array(
'shipments' => 'id'
);
/**
* @return array|mixed|string
*/
public function shipments()
{
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Brand.php | src/Bigcommerce/Api/Resources/Brand.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Brand extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
'id',
);
/**
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Page.php | src/Bigcommerce/Api/Resources/Page.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Page extends Resource
{
protected $ignoreOnCreate = array(
'id',
);
protected $ignoreOnUpdate = array(
'id',
);
public function create()
{
return Client::create... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Address.php | src/Bigcommerce/Api/Resources/Address.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Address extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OptionSetOption.php | src/Bigcommerce/Api/Resources/OptionSetOption.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class OptionSetOption extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
'option_set_id',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/RuleCondition.php | src/Bigcommerce/Api/Resources/RuleCondition.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Conditions that will be applied to a product based on the rule.
*/
class RuleCondition extends Resource
{
protected $ignoreOnCreate = array(
'id',
);
protected $ignoreOnUpdate = array(
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OrderProduct.php | src/Bigcommerce/Api/Resources/OrderProduct.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class OrderProduct extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Product.php | src/Bigcommerce/Api/Resources/Product.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Represents a single product.
*/
class Product extends Resource
{
protected $ignoreOnCreate = array(
'date_created',
'date_modified',
);
/**
* @see https://developer.bigcommer... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Customer.php | src/Bigcommerce/Api/Resources/Customer.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Customer extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
'id',
);
/**
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ShippingZone.php | src/Bigcommerce/Api/Resources/ShippingZone.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Resource;
class ShippingZone extends Resource
{
protected $ignoreOnCreate = array(
'id',
);
protected $ignoreOnUpdate = array(
'id',
);
public function create()
{
return Client... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OptionValue.php | src/Bigcommerce/Api/Resources/OptionValue.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Selectable value of an option.
*/
class OptionValue extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
'option_id',
);
/** @var string[] */
p... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Currency.php | src/Bigcommerce/Api/Resources/Currency.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Represents a single currency.
*/
class Currency extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'date_created',
'date_modified',
);
/** @var string[... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Category.php | src/Bigcommerce/Api/Resources/Category.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Category extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
'parent_category_list',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/DiscountRule.php | src/Bigcommerce/Api/Resources/DiscountRule.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A bulk discount rule.
*/
class DiscountRule extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductConfigurableField.php | src/Bigcommerce/Api/Resources/ProductConfigurableField.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A configurable field on a product.
*/
class ProductConfigurableField extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ShippingMethod.php | src/Bigcommerce/Api/Resources/ShippingMethod.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Resource;
class ShippingMethod extends Resource
{
protected $ignoreOnCreate = array(
'id',
);
protected $ignoreOnUpdate = array(
'id',
);
public function create($zoneId)
{
retu... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductReview.php | src/Bigcommerce/Api/Resources/ProductReview.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A product review.
*/
class ProductReview extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductGoogleProductSearch.php | src/Bigcommerce/Api/Resources/ProductGoogleProductSearch.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A product review.
*/
class ProductGoogleProductSearch extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductCustomField.php | src/Bigcommerce/Api/Resources/ProductCustomField.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A custom field on a product.
*/
class ProductCustomField extends Resource
{
protected $ignoreOnCreate = array(
'id',
'product_id'
);
protected $ignoreOnUpdate = array(
'id... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/SkuOption.php | src/Bigcommerce/Api/Resources/SkuOption.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A relationship between a product SKU and an option.
*/
class SkuOption extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
);
/** @var string[] */
pro... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/TaxClass.php | src/Bigcommerce/Api/Resources/TaxClass.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* An option.
*/
class TaxClass extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Shipment.php | src/Bigcommerce/Api/Resources/Shipment.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Shipment extends Resource
{
protected $ignoreOnCreate = array(
'id',
'order_id',
'date_created',
'customer_id',
'shipping_method',
);
protected $ignoreOnUpda... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OptionSet.php | src/Bigcommerce/Api/Resources/OptionSet.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class OptionSet extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
'id',
);
/**
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductImage.php | src/Bigcommerce/Api/Resources/ProductImage.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* An image which is displayed on the storefront for a product.
*/
class ProductImage extends Resource
{
protected $ignoreOnCreate = array(
'id',
'date_created',
'product_id',
);
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Coupon.php | src/Bigcommerce/Api/Resources/Coupon.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class Coupon extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'id',
'num_uses',
);
/** @var string[] */
protected $ignoreOnUpdate = array(
'id',
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductOption.php | src/Bigcommerce/Api/Resources/ProductOption.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Relationship between a product and an option applied from an option set.
*/
class ProductOption extends Resource
{
protected $fieldMap = array(
'option' => 'option_id'
);
public function ... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Sku.php | src/Bigcommerce/Api/Resources/Sku.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A stock keeping unit for a product.
*/
class Sku extends Resource
{
/** @var string[] */
protected $ignoreOnCreate = array(
'product_id',
);
/** @var string[] */
protected $ignore... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OrderCoupons.php | src/Bigcommerce/Api/Resources/OrderCoupons.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class OrderCoupons extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/ProductVideo.php | src/Bigcommerce/Api/Resources/ProductVideo.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A product video.
*/
class ProductVideo extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/OrderStatus.php | src/Bigcommerce/Api/Resources/OrderStatus.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
class OrderStatus extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/RequestLog.php | src/Bigcommerce/Api/Resources/RequestLog.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* Represents a request to the API.
*/
class RequestLog extends Resource
{
}
| php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Option.php | src/Bigcommerce/Api/Resources/Option.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* An option.
*/
class Option extends Resource
{
/**
* @return array|mixed|string
*/
public function values()
{
return Client::getCollection($this->fields->values->resource, 'Option... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/src/Bigcommerce/Api/Resources/Rule.php | src/Bigcommerce/Api/Resources/Rule.php | <?php
namespace Bigcommerce\Api\Resources;
use Bigcommerce\Api\Resource;
use Bigcommerce\Api\Client;
/**
* A product option rule.
*/
class Rule extends Resource
{
protected $ignoreOnCreate = array(
'id',
'product_id',
);
protected $ignoreOnUpdate = array(
'id',
'product... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ErrorTest.php | test/Unit/Api/ErrorTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\Error;
use PHPUnit\Framework\TestCase;
class ErrorTest extends TestCase
{
public function testConstructorHandlesArrayOfMessageObjects()
{
$messageObj = (object)['message' => 'message here'];
$error = new Error([$messageObj], 0, [])... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ClientErrorTest.php | test/Unit/Api/ClientErrorTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\ClientError;
use PHPUnit\Framework\TestCase;
class ClientErrorTest extends TestCase
{
public function testStringifyingReturnsTheMessageAndCodeAppropriately()
{
$error = new ClientError('message here', 100, []);
$this->assertSame('C... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/FilterTest.php | test/Unit/Api/FilterTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\Filter;
use PHPUnit\Framework\TestCase;
class FilterTest extends TestCase
{
public function testToQueryBuildsAnAppropriateQueryString()
{
$filter = new Filter(['a' => 1, 'b' => 'orange']);
$this->assertSame('?a=1&b=orange', $filter... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ConnectionTest.php | test/Unit/Api/ConnectionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\Connection;
use PHPUnit\Framework\TestCase;
class ConnectionTest extends TestCase
{
/**
* @var \Bigcommerce\Api\Connection;
*/
protected $object;
public function setUp(): void
{
$this->object = new Connection();
}
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ServerErrorTest.php | test/Unit/Api/ServerErrorTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\ServerError;
use PHPUnit\Framework\TestCase;
class ServerErrorTest extends TestCase
{
public function testBehavesExactlyLikeException()
{
$error = new ServerError('message', 100, []);
$this->assertSame('message', $error->getMessage... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ClientTest.php | test/Unit/Api/ClientTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Connection;
use PHPUnit\Framework\TestCase;
class ClientTest extends TestCase
{
/**
* @var Connection|\PHPUnit\Framework\MockObject\MockObject
*/
private $connection;
private $basePath = '';
public f... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | true |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/ResourceTest.php | test/Unit/Api/ResourceTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\Resource;
use PHPUnit\Framework\TestCase;
class ResourceTest extends TestCase
{
public function testGetCreateFieldsReturnsAllFieldsNotMarkedIgnore()
{
$product = new Resource((object)['date_created' => 'abc123', 'id' => 1]);
$this... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/NetworkErrorTest.php | test/Unit/Api/NetworkErrorTest.php | <?php
namespace Bigcommerce\Test\Unit\Api;
use Bigcommerce\Api\NetworkError;
use PHPUnit\Framework\TestCase;
class NetworkErrorTest extends TestCase
{
public function testBehavesExactlyLikeException()
{
$error = new NetworkError('message', 100, []);
$this->assertSame('message', $error->getMess... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ProductImageTest.php | test/Unit/Api/Resources/ProductImageTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\ProductImage;
use Bigcommerce\Api\Client;
class ProductImageTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$productImage = new ProductImage((object)['product_id' => 1]);
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/OrderTest.php | test/Unit/Api/Resources/OrderTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Order;
use Bigcommerce\Api\Client;
class OrderTest extends ResourceTestBase
{
public function testUpdatePassesThroughToConnection()
{
$order = new Order((object)(['id' => 1, 'status_id' => 5, 'is_deleted' => false]));
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/RuleTest.php | test/Unit/Api/Resources/RuleTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Rule;
use Bigcommerce\Api\Client;
class RuleTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$rule = new Rule((object)['id' => 1, 'product_id' => 1]);
$this->connection->ex... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ProductCustomFieldTest.php | test/Unit/Api/Resources/ProductCustomFieldTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\ProductCustomField;
use Bigcommerce\Api\Client;
class ProductCustomFieldTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$customField = new ProductCustomField((object)['product_id'... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/RuleConditionTest.php | test/Unit/Api/Resources/RuleConditionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\RuleCondition;
use Bigcommerce\Api\Client;
class RuleConditionTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$ruleCondition = new RuleCondition((object)['rule_id' => 1]);
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/CurrencyTest.php | test/Unit/Api/Resources/CurrencyTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Currency;
use Bigcommerce\Api\Client;
class CurrencyTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$currency = new Currency((object)['id' => 1]);
$this->connection->expec... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/SkuOptionTest.php | test/Unit/Api/Resources/SkuOptionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\SkuOption;
use Bigcommerce\Api\Client;
class SkuOptionTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$skuoption = new SkuOption((object)['id' => 1, 'sku_id' => 1, 'product_id' =>... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/OptionTest.php | test/Unit/Api/Resources/OptionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Option;
use Bigcommerce\Api\Client;
class OptionTest extends ResourceTestBase
{
public function testValuesPassesThroughToConnection()
{
$option = new Option((object)['values' => (object)['resource' => '/options/1/values... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/BrandTest.php | test/Unit/Api/Resources/BrandTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Brand;
use Bigcommerce\Api\Client;
class BrandTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$brand = new Brand();
$this->connection->expects($this->once())
-... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ResourceTestBase.php | test/Unit/Api/Resources/ResourceTestBase.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Connection;
use PHPUnit\Framework\TestCase;
class ResourceTestBase extends TestCase
{
/**
* @var Connection|\PHPUnit_Framework_MockObject_MockObject
*/
protected $connection;
protected $basePath ... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ShippingMethodTest.php | test/Unit/Api/Resources/ShippingMethodTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Resources\ShippingMethod;
class ShippingMethodTest extends ResourceTestBase
{
public function testCreateShippingMethod()
{
$input = ["name" => "USPS Endicia", "type" => "endicia", "settings" => ["carr... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/OptionSetTest.php | test/Unit/Api/Resources/OptionSetTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\OptionSet;
use Bigcommerce\Api\Client;
class OptionSetTest extends ResourceTestBase
{
public function testOptionsPassesThroughToConnection()
{
$optionset = new OptionSet((object)['options' => (object)['resource' => '/op... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/CustomerTest.php | test/Unit/Api/Resources/CustomerTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Customer;
use Bigcommerce\Api\Client;
class CustomerTest extends ResourceTestBase
{
public function testAddressesPassesThroughToConnection()
{
$customer = new Customer((object)['addresses' => (object)['resource' => '/cu... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/SkuTest.php | test/Unit/Api/Resources/SkuTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Sku;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Resources\SkuOption;
class SkuTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$sku = $this->getSimpleSku();
$this->con... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/CouponTest.php | test/Unit/Api/Resources/CouponTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Coupon;
use Bigcommerce\Api\Client;
class CouponTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$coupon = new Coupon();
$this->connection->expects($this->once())
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ProductOptionTest.php | test/Unit/Api/Resources/ProductOptionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\ProductOption;
use Bigcommerce\Api\Client;
class ProductOptionTest extends ResourceTestBase
{
public function testValuesPassesThroughToConnection()
{
$productOption = new ProductOption((object)['option_id' => 1]);
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ShippingZoneTest.php | test/Unit/Api/Resources/ShippingZoneTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Client;
use Bigcommerce\Api\Resources\ShippingZone;
class ShippingZoneTest extends ResourceTestBase
{
public function testCreateShippingZone()
{
$input = ['name' => 'United States', 'type' => 'country', 'locations' => [['country... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/CategoryTest.php | test/Unit/Api/Resources/CategoryTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Category;
use Bigcommerce\Api\Client;
class CategoryTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$category = new Category();
$this->connection->expects($this->once())
... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/OptionSetOptionTest.php | test/Unit/Api/Resources/OptionSetOptionTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\OptionSetOption;
use Bigcommerce\Api\Client;
class OptionSetOptionTest extends ResourceTestBase
{
public function testOptionPassesThroughToConnection()
{
$optionsetoption = new OptionSetOption((object)['option' => (obje... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/PageTest.php | test/Unit/Api/Resources/PageTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Page;
use Bigcommerce\Api\Client;
class PageTest extends ResourceTestBase
{
public function testGetAllPassesThroughToConnection()
{
$page = new Page();
$this->connection->expects($this->once())
->me... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ProductTest.php | test/Unit/Api/Resources/ProductTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Product;
use Bigcommerce\Api\Client;
class ProductTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$product = new Product((object)['id' => 1]);
$this->connection->expects($... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/OptionValueTest.php | test/Unit/Api/Resources/OptionValueTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\OptionValue;
use Bigcommerce\Api\Client;
class OptionValueTest extends ResourceTestBase
{
public function testOptionPassesThroughToConnection()
{
$optionValue = new OptionValue((object)['option_id' => 1]);
$this... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
bigcommerce/bigcommerce-api-php | https://github.com/bigcommerce/bigcommerce-api-php/blob/3f7e9b866574971b560b690ac69f2891fd2b6c98/test/Unit/Api/Resources/ShipmentTest.php | test/Unit/Api/Resources/ShipmentTest.php | <?php
namespace Bigcommerce\Test\Unit\Api\Resources;
use Bigcommerce\Api\Resources\Shipment;
use Bigcommerce\Api\Client;
class ShipmentTest extends ResourceTestBase
{
public function testCreatePassesThroughToConnection()
{
$shipment = new Shipment((object)['id' => 1, 'order_id' => 1]);
$this->... | php | MIT | 3f7e9b866574971b560b690ac69f2891fd2b6c98 | 2026-01-05T04:21:25.802976Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/logout.php | logout.php | <?php
session_start();
if(isset($_SESSION['email'])){
session_destroy();}
$ref= @$_GET['q'];
header("location:$ref");
?> | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/admin.php | admin.php | <?php
include_once 'dbConnection.php';
$ref=@$_GET['q'];
$email = $_POST['uname'];
$password = $_POST['password'];
$email = stripslashes($email);
$email = addslashes($email);
$password = stripslashes($password);
$password = addslashes($password);
$result = mysqli_query($con,"SELECT email FROM admin WHERE email = '$em... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/feedback.php | feedback.php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>NETCAMP || FEEDBACK </title>
<link rel="stylesheet" href="css/bo... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/login.php | login.php | <?php
session_start();
if(isset($_SESSION["email"])){
session_destroy();
}
include_once 'dbConnection.php';
$ref=@$_GET['q'];
$email = $_POST['email'];
$password = $_POST['password'];
$email = stripslashes($email);
$email = addslashes($email);
$password = stripslashes($password);
$password = addslashes($password);
$p... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/feed.php | feed.php | <?php
include_once 'dbConnection.php';
$ref=@$_GET['q'];
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$id=uniqid();
$date=date("Y-m-d");
$time=date("h:i:sa");
$feedback = $_POST['feedback'];
$q=mysqli_query($con,"INSERT INTO feedback VALUES ('$id' , '$name', '$email' , '$subject', '$... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/index.php | index.php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<t... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/sign.php | sign.php | <?php
include_once 'dbConnection.php';
ob_start();
$name = $_POST['name'];
$name= ucwords(strtolower($name));
$gender = $_POST['gender'];
$email = $_POST['email'];
$college = $_POST['college'];
$mob = $_POST['mob'];
$password = $_POST['password'];
$name = stripslashes($name);
$name = addslashes($name);
$name = ucwords(... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/update.php | update.php | <?php
include_once 'dbConnection.php';
session_start();
$email=$_SESSION['email'];
//delete feedback
if(isset($_SESSION['key'])){
if(@$_GET['fdid'] && $_SESSION['key']=='sunny7785068889') {
$id=@$_GET['fdid'];
$result = mysqli_query($con,"DELETE FROM feedback WHERE id='$id' ") or die('Error');
header("location:dash.php... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/account.php | account.php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<t... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/dbConnection.php | dbConnection.php | <?php
//all the variables defined here are accessible in all the files that include this one
$con= new mysqli('localhost','root','','project')or die("Could not connect to mysql".mysqli_error($con));
?> | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
sunnygkp10/Online-Exam-System- | https://github.com/sunnygkp10/Online-Exam-System-/blob/12023ea2f953d75e94c36f5171fc624b69b6442e/dash.php | dash.php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<t... | php | MIT | 12023ea2f953d75e94c36f5171fc624b69b6442e | 2026-01-05T04:21:24.383074Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/phpstorm_ide_helper.php | phpstorm_ide_helper.php | <?php
/**
* IDE 组件提示,无任何实际功能
*
* Class Yii
*/
class Yii
{
/**
* @var MyApplication
*/
public static $app;
}
/**
* Class MyApplication
*
* @property \yii\redis\Connection $redis
* @property \yii\queue\cli\Queue $queue 队列
* @property \services\Application $services 基础服务层
* @property \common\... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/requirements.php | requirements.php | <?php
/**
* Application requirement checker script.
*
* In order to run this script use the following console command:
* php requirements.php
*
* In order to run this script from the web, you should copy it to the web root.
* If you are using Linux you can create a hard link instead, using the following command:... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/behaviors/JWTAuth.php | oauth2/behaviors/JWTAuth.php | <?php
namespace oauth2\behaviors;
use Yii;
use yii\base\Behavior;
use yii\web\Controller;
use yii\web\UnauthorizedHttpException;
use yii\web\UnprocessableEntityHttpException;
use yii\web\IdentityInterface;
use oauth2\components\ServerRequest;
use League\OAuth2\Server\CryptKey;
use common\helpers\StringHelper;
use oau... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/_bootstrap.php | oauth2/tests/_bootstrap.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', __DIR__.'/../../');
require_once YII_APP_BASE_PATH . '/vendor/autoload.php';
require_once YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php';
require_onc... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/_data/login_data.php | oauth2/tests/_data/login_data.php | <?php
return [
[
'username' => 'erau',
'auth_key' => 'tUu1qHcde0diwUol3xeI-18MuHkkprQI',
// password_0
'password_hash' => '$2y$13$nJ1WDlBaGcbCdbNC5.5l4.sgy.OMEKCqtDQOdQ2OWpgiKRWYyzzne',
'password_reset_token' => 'RkD_Jw0_8HEedzLk7MM-ZKEFfYR7VbMr_1392559490',
'created_... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/unit/_bootstrap.php | oauth2/tests/unit/_bootstrap.php | <?php
/**
* Here you can initialize variables via \Codeception\Util\Fixtures class
* to store data in global array and use it in Tests.
*
* ```php
* // Here _bootstrap.php
* \Codeception\Util\Fixtures::add('user1', ['name' => 'davert']);
* ```
*
* In Tests
*
* ```php
* \Codeception\Util\Fixtures::get('user1... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/_support/UnitTester.php | oauth2/tests/_support/UnitTester.php | <?php
namespace oauth2\tests;
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookFor... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/_support/FunctionalTester.php | oauth2/tests/_support/FunctionalTester.php | <?php
namespace oauth2\tests;
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookFor... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/functional/LoginCest.php | oauth2/tests/functional/LoginCest.php | <?php
namespace oauth2\tests\functional;
use oauth2\tests\FunctionalTester;
use common\fixtures\UserFixture;
/**
* Class LoginCest
*/
class LoginCest
{
/**
* Load fixtures before db transaction begin
* Called in _before()
* @see \Codeception\Module\Yii2::_before()
* @see \Codeception\Module... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/tests/functional/_bootstrap.php | oauth2/tests/functional/_bootstrap.php | <?php
/**
* Here you can initialize variables via \Codeception\Util\Fixtures class
* to store data in global array and use it in Cests.
*
* ```php
* // Here _bootstrap.php
* \Codeception\Util\Fixtures::add('user1', ['name' => 'davert']);
* ```
*
* In Cests
*
* ```php
* \Codeception\Util\Fixtures::get('user1... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/controllers/OnAuthController.php | oauth2/controllers/OnAuthController.php | <?php
namespace oauth2\controllers;
use Yii;
use yii\data\ActiveDataProvider;
use yii\web\NotFoundHttpException;
use common\enums\StatusEnum;
use common\helpers\ResultHelper;
/**
* Class OnAuthController
* @package oauth2\controllers
* @property yii\db\ActiveRecord|yii\base\Model $modelClass
* @author jianyan74 ... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/controllers/ActiveController.php | oauth2/controllers/ActiveController.php | <?php
namespace oauth2\controllers;
use Yii;
use yii\filters\Cors;
use yii\web\BadRequestHttpException;
use oauth2\behaviors\JWTAuth;
use common\traits\BaseAction;
use common\behaviors\HttpSignAuth;
/**
* Class ActiveController
* @package oauth2\controllers
* @author jianyan74 <751393839@qq.com>
*/
class ActiveC... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/controllers/RefreshTokenController.php | oauth2/controllers/RefreshTokenController.php | <?php
namespace oauth2\controllers;
use Yii;
use GuzzleHttp\Psr7\ServerRequest;
use oauth2\components\Response;
use common\helpers\ResultHelper;
use oauth2\repository\RefreshTokenRepository;
/**
* 刷新access_token
*
* Class RefreshTokenController
* @package oauth2\controllers
* @author jianyan74 <751393839@qq.com... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/oauth2/controllers/ClientCredentialsController.php | oauth2/controllers/ClientCredentialsController.php | <?php
namespace oauth2\controllers;
use Yii;
use GuzzleHttp\Psr7\ServerRequest;
use oauth2\components\Response;
use common\helpers\ResultHelper;
/**
* 客户端模式(无用户,用户向客户端注册,然后客户端以自己的名义向’服务端’获取资源)
*
* Class ClientCredentialsController
* @package oauth2\controllers
* @author jianyan74 <751393839@qq.com>
*/
class Cl... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.