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 |
|---|---|---|---|---|---|---|---|---|
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/NewResourceObjectTest.php | test/NewResourceObjectTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test;
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\EmptyRelationship;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\NewReso... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/benchmarks/compound10k.php | test/benchmarks/compound10k.php | <?php
declare(strict_types=1);
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\CompoundDocument;
use JsonApiPhp\JsonApi\Error;
use JsonApiPhp\JsonApi\Error\Code;
use JsonApiPhp\JsonApi\Error\Detail;
use JsonApiPhp\JsonApi\Error\Id;
use JsonApiPhp\JsonApi\Error\SourceParameter;
use JsonApiPhp\JsonApi\Error\So... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/DataDocument/ManyResourceIdentifiersTest.php | test/DataDocument/ManyResourceIdentifiersTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test\DataDocument;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\JsonApi;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\ResourceIdentifier;
use JsonApiPhp\JsonApi\ResourceIdentifierCollection;
use Js... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/DataDocument/SingleResourceIdentifierTest.php | test/DataDocument/SingleResourceIdentifierTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test\DataDocument;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\JsonApi;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\ResourceIdentifier;
use JsonApiPhp\Jso... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/DataDocument/SingleResourceObjectTest.php | test/DataDocument/SingleResourceObjectTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test\DataDocument;
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\JsonApi;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\ResourceObject;
use JsonApiPhp\JsonApi\Test\B... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/DataDocument/ManyResourceObjectsTest.php | test/DataDocument/ManyResourceObjectsTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test\DataDocument;
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\JsonApi;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\Reso... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/test/DataDocument/NullDataTest.php | test/DataDocument/NullDataTest.php | <?php
declare(strict_types=1);
namespace JsonApiPhp\JsonApi\Test\DataDocument;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\JsonApi;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\Meta;
use JsonApiPhp\JsonApi\NullData;
use JsonApiPhp\JsonApi\Test\BaseTestCase;
class NullDataTest extends... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/examples/simple_doc.php | examples/simple_doc.php | <?php
declare(strict_types=1);
require_once __DIR__.'/../vendor/autoload.php';
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\ResourceIdentifier;
use JsonApiPhp\JsonApi\ResourceObject;
use Jso... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
json-api-php/json-api | https://github.com/json-api-php/json-api/blob/e34075c8335cb3512e38059c13a9a37217d3a178/examples/compound_doc.php | examples/compound_doc.php | <?php
declare(strict_types=1);
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\CompoundDocument;
use JsonApiPhp\JsonApi\Included;
use JsonApiPhp\JsonApi\Link\LastLink;
use JsonApiPhp\JsonApi\Link\NextLink;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\P... | php | MIT | e34075c8335cb3512e38059c13a9a37217d3a178 | 2026-01-05T03:02:38.439490Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/TestHelper.php | tests/TestHelper.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../lib/openpayu.php'; | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/OpenPayUTest.php | tests/unit/OpenPayUTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../TestHelper.php';
class OpenPayUTest extends PHPUnit_Framework_TestCase
{
const INCOMING_SIGNATURE = 'sender=145227;algorithm=SHA-256;... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/OpenPayU_ConfigurationTest.php | tests/unit/OpenPayU_ConfigurationTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../TestHelper.php';
class OpenPayU_ConfigurationTest extends PHPUnit_Framework_TestCase
{
const PHP_SDK_VERSION = 'PHP SDK 2.3.6';
c... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/OpenPayU_UtilTest.php | tests/unit/OpenPayU_UtilTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../TestHelper.php';
class OpenPayU_UtilTest extends PHPUnit_Framework_TestCase
{
const MERCHANT_POS_ID = 'MerchantPosId';
const SIGN... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/AuthType/AuthType_BasicTest.php | tests/unit/AuthType/AuthType_BasicTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../TestHelper.php';
class AuthType_BasicTest extends PHPUnit_Framework_TestCase
{
const POS_ID = 'PosId';
const SIGNATURE_KEY = 'S... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/AuthType/AuthType_OauthTest.php | tests/unit/AuthType/AuthType_OauthTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../TestHelper.php';
class AuthType_OauthTest extends PHPUnit_Framework_TestCase
{
const CLIENT_ID = 'ClientId';
/**
* @tes... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/tests/unit/v2/OpenPayU_OrderTest.php | tests/unit/v2/OpenPayU_OrderTest.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../TestHelper.php';
class OpenPayU_OrderTest extends PHPUnit_Framework_TestCase {
private $_order = array();
protected function ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/config.php | examples/config.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
//set Environment
OpenPayU_Configuration::setEnvironment('secure');
//set POS ID and Second MD5 Key (from merchant admin panel)
OpenPayU_Configuration::setMerchantPosId('145227'); // POS ID (po... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/layout/success.php | examples/layout/success.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../config.php';
if(isset($_GET['error']))
header('Location: ' . EXAMPLES_D... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/layout/error.php | examples/layout/error.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../config.php';
?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/retrieve/RetrievePaymethods.php | examples/v2/retrieve/RetrievePaymethods.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
?>
<!doctype html>
<html lang="en-US">
<head>
<meta ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/shops/Get.php | examples/v2/shops/Get.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
if (isset($_POST['publicShopId'])) {
$publicShopId =... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/refund/RefundCreate.php | examples/v2/refund/RefundCreate.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
if (isset($_POST['orderId']))
$orderId = trim($_POST... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderStatusUpdate.php | examples/v2/order/OrderStatusUpdate.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
?>
<!doctype html>
<html lang="en-US">
<head>
<meta... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderRetrieve.php | examples/v2/order/OrderRetrieve.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
?>
<!doctype html>
<html lang="en-US">
<head>
<meta ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderForm.php | examples/v2/order/OrderForm.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
$order = array();
$order['notifyUrl'] = 'http://localho... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderCancel.php | examples/v2/order/OrderCancel.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
?>
<!doctype html>
<html lang="en-US">
<head>
<meta c... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderTransactionRetrieve.php | examples/v2/order/OrderTransactionRetrieve.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
?>
<!doctype html>
<html lang="en-US">
<head>
<meta ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderNotify.php | examples/v2/order/OrderNotify.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$body = ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/order/OrderCreate.php | examples/v2/order/OrderCreate.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
$order = array();
$order['notifyUrl'] = 'http://localh... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/examples/v2/token/TokenDelete.php | examples/v2/token/TokenDelete.php | <?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c)
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../../config.php';
if (isset($_POST['token'])) {
$token = trim($_POST['token... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/openpayu.php | lib/openpayu.php | <?php
/**
* OpenPayU Standard Library
* ver. 2.1.3
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
include_once('OpenPayU/Configuration.php');
include_once('OpenPayU/OpenPayUException.php');
include_once('OpenPayU/Util.php');
include_once('OpenPayU/OpenPayU.php');
includ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Util.php | lib/OpenPayU/Util.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Util
{
/**
* Function generate sign data
*
* @param array $data
* @param string $algorithm
* @param string $merchantPosId
* @param string ... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Http.php | lib/OpenPayU/Http.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Http
{
/**
* @param string $pathUrl
* @param string $data
* @param AuthType $authType
* @return mixed
* @throws OpenPayU_Exception_Configurati... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/OpenPayuOrderStatus.php | lib/OpenPayU/OpenPayuOrderStatus.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
/**
* Class OpenPayuOrderStatus
*/
abstract class OpenPayuOrderStatus
{
const STATUS_NEW = 'NEW';
const STATUS_PENDING = 'PENDING';
const STATUS_CANCELED = 'CANCELED';
... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Result.php | lib/OpenPayU/Result.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Result
{
private $status = '';
private $error = '';
private $success = 0;
private $request = '';
/** @var object */
private $response;
private $... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/OpenPayUException.php | lib/OpenPayU/OpenPayUException.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Exception extends \Exception
{
}
class OpenPayU_Exception_Request extends OpenPayU_Exception
{
/** @var stdClass|null */
private $originalResponseMessage;
pu... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/OpenPayU.php | lib/OpenPayU/OpenPayU.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU
{
protected static function build($data)
{
$instance = new OpenPayU_Result();
if (array_key_exists('status', $data) && $data['status'] == 'WARNING_... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/OpenPayuRefundStatus.php | lib/OpenPayU/OpenPayuRefundStatus.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
/**
* Class OpenPayuOrderStatus
*/
abstract class OpenPayuRefundStatus
{
const STATUS_PENDING = 'PENDING';
const STATUS_CANCELED = 'CANCELED';
const STATUS_FINALIZED = 'FIN... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Configuration.php | lib/OpenPayU/Configuration.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c)
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Configuration
{
private static $_availableEnvironment = array('custom', 'secure', 'sandbox');
private static $_availableHashAlgorithm = array('SHA', 'SHA-256', 'SHA-384'... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/ResultError.php | lib/OpenPayU/ResultError.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class ResultError
{
/**
* @var string
*/
private $error;
/**
* @var string
*/
private $errorDescription;
/**
* @return string
*/
pu... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/HttpCurl.php | lib/OpenPayU/HttpCurl.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
if (!defined('CURL_SSLVERSION_TLSv1_2')) {
define('CURL_SSLVERSION_TLSv1_2', 6);
}
class OpenPayU_HttpCurl
{
/**
* @var
*/
static $headers;
/**
* @param $... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Model/PayuShop.php | lib/OpenPayU/Model/PayuShop.php | <?php
class PayuShop
{
/** @var string */
private $shopId;
/** @var string */
private $name;
/** @var string */
private $currencyCode;
/** @var PayuShopBalance */
private $balance;
/**
* @return string
*/
public function getShopId()
{
return $this->shop... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Model/PayuShop/PayuShopBalance.php | lib/OpenPayU/Model/PayuShop/PayuShopBalance.php | <?php
class PayuShopBalance
{
/** @var string */
private $currencyCode;
/** @var int */
private $total;
/** @var int */
private $available;
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param strin... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/AuthType/TokenRequest.php | lib/OpenPayU/AuthType/TokenRequest.php | <?php
class AuthType_TokenRequest implements AuthType
{
public function getHeaders()
{
return array(
'Content-Type: application/x-www-form-urlencoded',
'Accept: */*'
);
}
} | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/AuthType/Basic.php | lib/OpenPayU/AuthType/Basic.php | <?php
class AuthType_Basic implements AuthType
{
/**
* @var string
*/
private $authBasicToken;
public function __construct($posId, $signatureKey)
{
if (empty($posId)) {
throw new OpenPayU_Exception_Configuration('PosId is empty');
}
if (empty($signatureK... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/AuthType/Oauth.php | lib/OpenPayU/AuthType/Oauth.php | <?php
class AuthType_Oauth implements AuthType
{
/**
* @var OauthResultClientCredentials
*/
private $oauthResult;
public function __construct($clientId, $clientSecret)
{
if (empty($clientId)) {
throw new OpenPayU_Exception_Configuration('ClientId is empty');
}
... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/AuthType/AuthType.php | lib/OpenPayU/AuthType/AuthType.php | <?php
interface AuthType
{
/**
* @return array
*/
public function getHeaders();
} | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/v2/Order.php | lib/OpenPayU/v2/Order.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
/**
* Class OpenPayU_Order
*/
class OpenPayU_Order extends OpenPayU
{
const ORDER_SERVICE = 'orders/';
const ORDER_TRANSACTION_SERVICE = 'transactions';
const ORDER_REFUND_... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/v2/Token.php | lib/OpenPayU/v2/Token.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c)
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Token extends OpenPayU
{
const TOKENS_SERVICE = 'tokens';
/**
* Deleting a payment token
* @param string $token
* @return OpenPayU_Result|null
* @t... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/v2/Retrieve.php | lib/OpenPayU/v2/Retrieve.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Retrieve extends OpenPayU
{
const PAYMETHODS_SERVICE = 'paymethods';
/**
* Get Pay Methods from POS
* @param string $lang
* @return OpenPayU_Result... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/v2/Refund.php | lib/OpenPayU/v2/Refund.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Refund extends OpenPayU
{
/**
* Function make refund for order
* @param $orderId
* @param $description
* @param null|int $amount Amount of refund i... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/v2/Shop.php | lib/OpenPayU/v2/Shop.php | <?php
/**
* OpenPayU Standard Library
*
* @copyright Copyright (c) PayU
* http://www.payu.com
* http://developers.payu.com
*/
class OpenPayU_Shop extends OpenPayU
{
const SHOPS_SERVICE = 'shops';
/**
* Retrieving shop data
* @param string $publicShopId
* @return PayuShop
* @throws Op... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/OauthGrantType.php | lib/OpenPayU/Oauth/OauthGrantType.php | <?php
abstract class OauthGrantType
{
const CLIENT_CREDENTIAL = 'client_credentials';
const TRUSTED_MERCHANT = 'trusted_merchant';
}
| php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/Oauth.php | lib/OpenPayU/Oauth/Oauth.php | <?php
class OpenPayU_Oauth
{
/**
* @var OauthCacheInterface
*/
private static $oauthTokenCache;
const CACHE_KEY = 'AccessToken';
/**
* @param string $clientId
* @param string $clientSecret
* @return OauthResultClientCredentials
* @throws OpenPayU_Exception_ServerError
... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/OauthResultClientCredentials.php | lib/OpenPayU/Oauth/OauthResultClientCredentials.php | <?php
class OauthResultClientCredentials
{
/**
* @var string
*/
private $accessToken;
/**
* @var string
*/
private $tokenType;
/**
* @var string
*/
private $expiresIn;
/**
* @var string
*/
private $grantType;
/**
* @var DateTime
*/... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/Cache/OauthCacheFile.php | lib/OpenPayU/Oauth/Cache/OauthCacheFile.php | <?php
class OauthCacheFile implements OauthCacheInterface
{
private $directory;
/**
* @param string $directory
* @throws OpenPayU_Exception_Configuration
*/
public function __construct($directory = null)
{
if ($directory === null) {
$directory = dirname(__FILE__).'/.... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/Cache/OauthCacheMemcached.php | lib/OpenPayU/Oauth/Cache/OauthCacheMemcached.php | <?php
class OauthCacheMemcached implements OauthCacheInterface
{
private $memcached;
/**
* @param string $host
* @param int $port
* @param int $weight
* @throws OpenPayU_Exception_Configuration
*/
public function __construct($host = 'localhost', $port = 11211, $weight = 0)
{
... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/OpenPayU/Oauth/Cache/OauthCacheInterface.php | lib/OpenPayU/Oauth/Cache/OauthCacheInterface.php | <?php
interface OauthCacheInterface
{
/**
* @param string $key
* @return null | object
*/
public function get($key);
/**
* @param string $key
* @param object $value
* @return bool
*/
public function set($key, $value);
/**
* @param string $key
* @retu... | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false |
PayU-EMEA/openpayu_php | https://github.com/PayU-EMEA/openpayu_php/blob/922bde1d842affb928c139711173daaa63e220ad/lib/Cache/index.php | lib/Cache/index.php | php | Apache-2.0 | 922bde1d842affb928c139711173daaa63e220ad | 2026-01-05T03:02:45.708659Z | false | |
imliam/laravel-blade-helper | https://github.com/imliam/laravel-blade-helper/blob/14ead24b35d4730e4e3b8b7f3ce614512e1a60e6/src/BladeHelperServiceProvider.php | src/BladeHelperServiceProvider.php | <?php
namespace ImLiam\BladeHelper;
use Illuminate\Support\ServiceProvider;
class BladeHelperServiceProvider extends ServiceProvider
{
/**
* Register the application services.
*/
public function register()
{
$this->app->singleton('blade.helper', function () {
return new Blad... | php | MIT | 14ead24b35d4730e4e3b8b7f3ce614512e1a60e6 | 2026-01-05T03:02:57.857580Z | false |
imliam/laravel-blade-helper | https://github.com/imliam/laravel-blade-helper/blob/14ead24b35d4730e4e3b8b7f3ce614512e1a60e6/src/BladeHelper.php | src/BladeHelper.php | <?php
namespace ImLiam\BladeHelper;
use Illuminate\View\Compilers\BladeCompiler;
class BladeHelper
{
/**
* All the custom "helper directive" callbacks.
*
* @var array
*/
protected $customDirectives = [];
protected $compiler;
public function __construct(BladeCompiler $compiler)
... | php | MIT | 14ead24b35d4730e4e3b8b7f3ce614512e1a60e6 | 2026-01-05T03:02:57.857580Z | false |
imliam/laravel-blade-helper | https://github.com/imliam/laravel-blade-helper/blob/14ead24b35d4730e4e3b8b7f3ce614512e1a60e6/src/Facades/BladeHelper.php | src/Facades/BladeHelper.php | <?php
namespace ImLiam\BladeHelper\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @see \ImLiam\BladeHelper\BladeHelper
*/
class BladeHelper extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
... | php | MIT | 14ead24b35d4730e4e3b8b7f3ce614512e1a60e6 | 2026-01-05T03:02:57.857580Z | false |
imliam/laravel-blade-helper | https://github.com/imliam/laravel-blade-helper/blob/14ead24b35d4730e4e3b8b7f3ce614512e1a60e6/tests/TestCase.php | tests/TestCase.php | <?php
namespace ImLiam\BladeHelper\Tests;
use ImLiam\BladeHelper\BladeHelperServiceProvider;
use Orchestra\Testbench\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
/**
* Add the package's service provider.
*
* @param $app
*
* @return array
*/
protected ... | php | MIT | 14ead24b35d4730e4e3b8b7f3ce614512e1a60e6 | 2026-01-05T03:02:57.857580Z | false |
imliam/laravel-blade-helper | https://github.com/imliam/laravel-blade-helper/blob/14ead24b35d4730e4e3b8b7f3ce614512e1a60e6/tests/Unit/BladeHelperTest.php | tests/Unit/BladeHelperTest.php | <?php
namespace ImLiam\BladeHelper\Tests\Unit;
use Illuminate\View\Compilers\BladeCompiler;
use ImLiam\BladeHelper\BladeHelper;
use ImLiam\BladeHelper\Tests\TestCase;
use Mockery as m;
class BladeHelperTest extends TestCase
{
protected $compiler;
protected $helper;
public function setUp(): void
{
... | php | MIT | 14ead24b35d4730e4e3b8b7f3ce614512e1a60e6 | 2026-01-05T03:02:57.857580Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/src/MicrorestServiceProvider.php | src/MicrorestServiceProvider.php | <?php
namespace Marmelab\Microrest;
use Raml\Parser;
use Silex\Application;
use Silex\ServiceProviderInterface;
class MicrorestServiceProvider implements ServiceProviderInterface
{
public function register(Application $app)
{
$app['microrest.initializer'] = $app->protect(function () use ($app) {
... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/src/RestController.php | src/RestController.php | <?php
namespace Marmelab\Microrest;
use Doctrine\DBAL\Connection;
use Pagerfanta\Adapter\DoctrineDbalAdapter;
use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class RestController
{
protected... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/src/RouteBuilder.php | src/RouteBuilder.php | <?php
namespace Marmelab\Microrest;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class RouteBuilder
{
private static $validMethods = array('GET', 'POST', 'PUT', 'PATCH', 'DELETE');
public function build($controllers, array $routes, $cont... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/tests/MicrorestServiceProviderTest.php | tests/MicrorestServiceProviderTest.php | <?php
namespace Marmelab\MicrorestTest;
use Marmelab\Microrest\MicrorestServiceProvider;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
class MicrorestServiceProviderTest extends \PHPUnit_Extensions_Database_TestCase
{
private $connection = null;
/**
* @return PHPUnit_Extensions_D... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/examples/ng-admin/src/app.php | examples/ng-admin/src/app.php | <?php
use JDesrosiers\Silex\Provider\CorsServiceProvider;
use Marmelab\Microrest\MicrorestServiceProvider;
use Silex\Application;
use Silex\Provider\ServiceControllerServiceProvider;
use Silex\Provider\TwigServiceProvider;
use Silex\Provider\UrlGeneratorServiceProvider;
use Silex\Provider\ValidatorServiceProvider;
$a... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/examples/ng-admin/config/prod.php | examples/ng-admin/config/prod.php | <?php
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
'db.options' => array(
'driver' => 'pdo_sqlite',
'path' => __DIR__.'/../app.db',
),
)); | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/examples/ng-admin/config/dev.php | examples/ng-admin/config/dev.php | <?php
use Silex\Provider\DebugServiceProvider;
use Silex\Provider\MonologServiceProvider;
use Silex\Provider\WebProfilerServiceProvider;
// include the prod configuration
require __DIR__.'/prod.php';
// enable the debug mode
$app['debug'] = true;
$app->register(new MonologServiceProvider(), array(
'monolog.logf... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/examples/ng-admin/web/index_dev.php | examples/ng-admin/web/index_dev.php | <?php
if (preg_match('#^/admin#', $_SERVER["REQUEST_URI"])) {
if ('/admin' === $_SERVER["REQUEST_URI"]) {
header("Location: /admin/");
exit;
}
return false; // serve the requested resource as-is.
}
use Symfony\Component\Debug\Debug;
require_once __DIR__.'/../vendor/autoload.php';
Debug:... | php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
marmelab/microrest.php | https://github.com/marmelab/microrest.php/blob/c9e0e951c42e69da1635b1e2de449e367d4edfaa/examples/ng-admin/web/index.php | examples/ng-admin/web/index.php | <?php
ini_set('display_errors', 0);
require_once __DIR__.'/../vendor/autoload.php';
$app = require __DIR__.'/../src/app.php';
require __DIR__.'/../config/prod.php';
$app->run();
| php | MIT | c9e0e951c42e69da1635b1e2de449e367d4edfaa | 2026-01-05T03:03:06.400866Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/KarserRecaptcha3Bundle.php | KarserRecaptcha3Bundle.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle;
use Karser\Recaptcha3Bundle\DependencyInjection\Compiler\UseRequestMethodPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class KarserRecaptcha3Bundle extends Bundle
{
public functio... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/RequestMethod/SymfonyHttpClient.php | RequestMethod/SymfonyHttpClient.php | <?php
declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\RequestMethod;
use Karser\Recaptcha3Bundle\ReCaptcha\ReCaptcha;
use Karser\Recaptcha3Bundle\ReCaptcha\RequestMethod;
use Karser\Recaptcha3Bundle\ReCaptcha\RequestParameters;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Sy... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Form/Recaptcha3Type.php | Form/Recaptcha3Type.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
final class ... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestParameters.php | ReCaptcha/RequestParameters.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod.php | ReCaptcha/RequestMethod.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/Response.php | ReCaptcha/Response.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/ReCaptcha.php | ReCaptcha/ReCaptcha.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod/Socket.php | ReCaptcha/RequestMethod/Socket.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod/Curl.php | ReCaptcha/RequestMethod/Curl.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod/CurlPost.php | ReCaptcha/RequestMethod/CurlPost.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod/SocketPost.php | ReCaptcha/RequestMethod/SocketPost.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/ReCaptcha/RequestMethod/Post.php | ReCaptcha/RequestMethod/Post.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Services/HostProviderInterface.php | Services/HostProviderInterface.php | <?php
declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Services;
interface HostProviderInterface
{
public const DEFAULT_HOST = 'www.google.com';
public const ALT_HOST = 'www.recaptcha.net';
public function getHost(): string;
public function getVerifyUrl(): string;
} | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Services/IpResolverInterface.php | Services/IpResolverInterface.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Services;
interface IpResolverInterface
{
public function resolveIp(): ?string;
}
| php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Services/IpResolver.php | Services/IpResolver.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Services;
use Symfony\Component\HttpFoundation\RequestStack;
final class IpResolver implements IpResolverInterface
{
/** @var RequestStack */
private $requestStack;
public function __construct(RequestStack $requestStack)
{
$thi... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Services/HostProvider.php | Services/HostProvider.php | <?php
declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Services;
use Karser\Recaptcha3Bundle\ReCaptcha\ReCaptcha;
final class HostProvider implements HostProviderInterface
{
/** @var string */
private $host;
public function __construct(string $host)
{
$this->host = $host;
}
... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/DependencyInjection/KarserRecaptcha3Extension.php | DependencyInjection/KarserRecaptcha3Extension.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader;
u... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/DependencyInjection/Configuration.php | DependencyInjection/Configuration.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\DependencyInjection;
use Karser\Recaptcha3Bundle\Services\HostProviderInterface;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationIn... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/DependencyInjection/Compiler/UseRequestMethodPass.php | DependencyInjection/Compiler/UseRequestMethodPass.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
final class UseRequestMethodPass implements CompilerPassInterface
{
public function ... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Resources/config/services.php | Resources/config/services.php | <?php
declare(strict_types=1);
use Karser\Recaptcha3Bundle\Form\Recaptcha3Type;
use Karser\Recaptcha3Bundle\Services\HostProvider;
use Karser\Recaptcha3Bundle\Services\IpResolver;
use Karser\Recaptcha3Bundle\RequestMethod\SymfonyHttpClient;
use Karser\Recaptcha3Bundle\Validator\Constraints\Recaptcha3Validator;
use Ka... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/TestKernel.php | Tests/TestKernel.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Tests;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
class TestKernel extends Kernel
{
private $configurationFilename;
/**
* Defines the configuration filename.
*
* @param string $... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/FunctionalTest.php | Tests/FunctionalTest.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Tests;
use Karser\Recaptcha3Bundle\Form\Recaptcha3Type;
use Karser\Recaptcha3Bundle\Tests\fixtures\RecaptchaMock;
use Karser\Recaptcha3Bundle\Validator\Constraints\Recaptcha3;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Con... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/RequestMethod/SymfonyHttpClientTest.php | Tests/RequestMethod/SymfonyHttpClientTest.php | <?php
declare(strict_types=1);
namespace RequestMethod;
use Karser\Recaptcha3Bundle\RequestMethod\SymfonyHttpClient;
use PHPUnit\Framework\TestCase;
use Karser\Recaptcha3Bundle\ReCaptcha\RequestParameters;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\HttpClient\Response\MockResponse;
final... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/fixtures/MockHttpClientCallback.php | Tests/fixtures/MockHttpClientCallback.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Tests\fixtures;
use Symfony\Component\HttpClient\Response\MockResponse;
use Symfony\Contracts\HttpClient\ResponseInterface;
class MockHttpClientCallback
{
public function __invoke(string $method, string $url, array $options = []): ResponseInterface... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/fixtures/RecaptchaMock.php | Tests/fixtures/RecaptchaMock.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Tests\fixtures;
use Karser\Recaptcha3Bundle\ReCaptcha\Response;
class RecaptchaMock
{
public $nextSuccess = true;
public $nextErrorCodes = [];
public function verify($response, $remoteIp = null)
{
return new Response($this->nex... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/Form/Recaptcha3TypeTest.php | Tests/Form/Recaptcha3TypeTest.php | <?php declare(strict_types=1);
namespace Karser\Recaptcha3Bundle\Tests\Form;
use Karser\Recaptcha3Bundle\Form\Recaptcha3Type;
use Symfony\Component\Form\PreloadedExtension;
use Symfony\Component\Form\Test\TypeTestCase;
class Recaptcha3TypeTest extends TypeTestCase
{
const SITEKEY = '<sitekey>';
const HOST = ... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
karser/KarserRecaptcha3Bundle | https://github.com/karser/KarserRecaptcha3Bundle/blob/3d194dab4c31115bebc073c866ff55afaaa9e276/Tests/ReCaptcha/ResponseTest.php | Tests/ReCaptcha/ResponseTest.php | <?php declare(strict_types=1);
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* BSD 3-Clause License
* @copyright (c) 2019, Google Inc.
* @link https://www.google.com/recaptcha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | php | MIT | 3d194dab4c31115bebc073c866ff55afaaa9e276 | 2026-01-05T03:03:06.678663Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.