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 |
|---|---|---|---|---|---|---|---|---|
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/bytecode/Disassembler.php | src/bytecode/Disassembler.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
/**
* @internal This interface is ... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/bytecode/VldParser.php | src/bytecode/VldParser.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function array_unique;
use func... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/cli/Version.php | src/cli/Version.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use function assert;
use functi... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/cli/Application.php | src/cli/Application.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use const PHP_EOL;
use function... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/cli/Configuration.php | src/cli/Configuration.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
/**
* @internal This class is ... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/cli/ConfigurationBuilder.php | src/cli/ConfigurationBuilder.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use function assert;
use functi... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/cli/Factory.php | src/cli/Factory.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use SebastianBergmann\FOAL\Anal... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/fixture/source.php | tests/fixture/source.php | <?php declare(strict_types=1);
function f()
{
$result = 'result';
return $result;
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/fixture/source2.php | tests/fixture/source2.php | <?php declare(strict_types=1);
function f()
{
$result = 'result';
return $result;
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/unit/TextRendererTest.php | tests/unit/TextRendererTest.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function assert;
use function f... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/unit/file/FileCollectionTest.php | tests/unit/file/FileCollectionTest.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function assert;
use function f... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/unit/file/FileTest.php | tests/unit/file/FileTest.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function assert;
use function f... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/unit/bytecode/VldParserTest.php | tests/unit/bytecode/VldParserTest.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function assert;
use function f... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/tests/unit/bytecode/VldDisassemblerTest.php | tests/unit/bytecode/VldDisassemblerTest.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use PHPUnit\Framework\Attributes\Co... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-version.php | build/scripts/phar-version.php | #!/usr/bin/env php
<?php declare(strict_types=1);
if (!isset($argv[1], $argv[2])) {
exit(1);
}
\file_put_contents(
__DIR__ . '/../tmp/phar/foal/cli/Version.php',
\str_replace(
'private static string $pharVersion = \'\';',
'private static string $pharVersion = \'' . $argv[1] . '\';',
... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/version.php | build/scripts/version.php | #!/usr/bin/env php
<?php declare(strict_types=1);
require __DIR__ . '/../../vendor/sebastian/version/src/Version.php';
use SebastianBergmann\Version;
$buffer = \file_get_contents(__DIR__ . '/../../src/cli/Version.php');
$start = \strpos($buffer, 'new VersionId(\'') + \strlen('new VersionId(\'');
$end = \strpo... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/extract-release-notes.php | build/scripts/extract-release-notes.php | #!/usr/bin/env php
<?php declare(strict_types=1);
if ($argc !== 2) {
print $argv[0] . ' <tag>' . PHP_EOL;
exit(1);
}
$version = $argv[1];
$file = __DIR__ . '/../../ChangeLog.md';
if (!is_file($file) || !is_readable($file)) {
print $file . ' cannot be read' . PHP_EOL;
exit(1);
}
$buffer = '';
$appe... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-manifest.php | build/scripts/phar-manifest.php | #!/usr/bin/env php
<?php declare(strict_types=1);
if ($argc !== 3) {
fwrite(
STDERR,
sprintf(
'%s /path/to/manifest.txt /path/to/sbom.xml' . PHP_EOL,
$argv[0]
)
);
exit(1);
}
$package = package();
$version = version();
$dependencies = dependencies(... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/run.php | build/scripts/phar-set-timestamps/run.php | #!/usr/bin/env php
<?php declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
if (!isset($argv[1]) || !is_file($argv[1])) {
exit(1);
}
use Seld\PharUtils\Timestamps;
$util = new Timestamps($argv[1]);
if (is_string(getenv('SOURCE_DATE_EPOCH'))) {
$timestamp = new DateTime;
$timestamp->setTi... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/autoload.php | build/scripts/phar-set-timestamps/vendor/autoload.php | <?php
// autoload.php @generated by Composer
if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/InstalledVersions.php | build/scripts/phar-set-timestamps/vendor/composer/InstalledVersions.php | <?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer;
use Composer\Autoload\ClassLoa... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/autoload_real.php | build/scripts/phar-set-timestamps/vendor/composer/autoload_real.php | <?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit386a05f6676643b8b2eb49288e20d079
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/autoload_namespaces.php | build/scripts/phar-set-timestamps/vendor/composer/autoload_namespaces.php | <?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
);
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/autoload_psr4.php | build/scripts/phar-set-timestamps/vendor/composer/autoload_psr4.php | <?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Seld\\PharUtils\\' => array($vendorDir . '/seld/phar-utils/src'),
);
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/autoload_static.php | build/scripts/phar-set-timestamps/vendor/composer/autoload_static.php | <?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit386a05f6676643b8b2eb49288e20d079
{
public static $prefixLengthsPsr4 = array (
'S' =>
array (
'Seld\\PharUtils\\' => 15,
),
);
public static $prefixDirsPsr4 = arra... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/installed.php | build/scripts/phar-set-timestamps/vendor/composer/installed.php | <?php return array(
'root' => array(
'name' => '__root__',
'pretty_version' => '8.5.x-dev',
'version' => '8.5.9999999.9999999-dev',
'reference' => 'aca96fcd8b6799ead1066524b2b91c5184ece78f',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases'... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/ClassLoader.php | build/scripts/phar-set-timestamps/vendor/composer/ClassLoader.php | <?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Autoload;
/**
* ClassLoader im... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/autoload_classmap.php | build/scripts/phar-set-timestamps/vendor/composer/autoload_classmap.php | <?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'Seld\\PharUtils\\Linter' => $vendorDir . '/seld/phar-utils/src/Linter.php',
'Seld\\PharUtils... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/composer/platform_check.php | build/scripts/phar-set-timestamps/vendor/composer/platform_check.php | <?php
// platform_check.php @generated by Composer
$issues = array();
if (!(PHP_VERSION_ID >= 50300)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error'... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/seld/phar-utils/src/Timestamps.php | build/scripts/phar-set-timestamps/vendor/seld/phar-utils/src/Timestamps.php | <?php
/*
* This file is part of PHAR Utils.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Seld\PharUtils;
class Timestamps
{
private $contents;
/**
* @param s... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/scripts/phar-set-timestamps/vendor/seld/phar-utils/src/Linter.php | build/scripts/phar-set-timestamps/vendor/seld/phar-utils/src/Linter.php | <?php
/*
* This file is part of PHAR Utils.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Seld\PharUtils;
class Linter
{
/**
* Lints all php files inside a given p... | php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/build/config/php-scoper.php | build/config/php-scoper.php | <?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
];
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/post-create-project-command.php | post-create-project-command.php | <?php
declare(strict_types=1);
echo <<<EOF
_____ _ _ _ _
/ ____| (_) | || |
| (___ | |_ _ __ ___ | || |_
\___ \| | | '_ ` _ \ |__ _|
____) | | | | | | | | | |
|_____/|_|_|_| |_| |_| |_| _
| __ \ | | /\ ... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/Controller/Home.php | src/Controller/Home.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\CustomResponse as Response;
use Pimple\Psr11\Container;
use Psr\Http\Message\ServerRequestInterface as Request;
final class Home
{
private const API_NAME = 'slim4-api-skeleton';
private const API_VERSION = '1.1.0';
private Container $con... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Cors.php | src/App/Cors.php | <?php
declare(strict_types=1);
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\App;
return static function (App $app): void {
$app->options('/{routes:.+}', function (Request $request, Response $response) {
return $response;
});
... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Database.php | src/App/Database.php | <?php
declare(strict_types=1);
$container['db'] = static function (): PDO {
$dsn = sprintf(
'mysql:host=%s;dbname=%s;port=%s;charset=utf8',
getenv('DB_HOST'),
getenv('DB_NAME'),
getenv('DB_PORT')
);
$pdo = new PDO($dsn, getenv('DB_USER'), getenv('DB_PASS'));
$pdo->setAt... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Repositories.php | src/App/Repositories.php | <?php
declare(strict_types=1);
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/NotFound.php | src/App/NotFound.php | <?php
declare(strict_types=1);
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\App;
return static function (App $app): void {
$app->map(
['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
'/{routes:.+}',
function (Request $request): void {
throw new Slim\Exception\Htt... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Container.php | src/App/Container.php | <?php
declare(strict_types=1);
use Pimple\Container;
use Pimple\Psr11\Container as Psr11Container;
use Slim\Factory\AppFactory;
$container = new Container();
return AppFactory::create(
new ResponseFactory(),
new Psr11Container($container)
);
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/ResponseFactory.php | src/App/ResponseFactory.php | <?php
declare(strict_types=1);
use App\CustomResponse;
use Fig\Http\Message\StatusCodeInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface as Response;
final class ResponseFactory implements ResponseFactoryInterface
{
public function createResponse(
int $code =... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/ErrorHandler.php | src/App/ErrorHandler.php | <?php
declare(strict_types=1);
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface;
return function (
ServerRequestInterface $request,
Throwable $exception,
bool $displayErrorDetails,
bool $logErrors,
bool $logErrorDetails
) use ($app): Response {
$... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/App.php | src/App/App.php | <?php
declare(strict_types=1);
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/DotEnv.php';
require_once __DIR__.'/CustomResponse.php';
require_once __DIR__.'/ResponseFactory.php';
$app = require __DIR__ . '/Container.php';
$customErrorHandler = require __DIR__ . '/ErrorHandler.php';
(require __DI... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/DotEnv.php | src/App/DotEnv.php | <?php
declare(strict_types=1);
$baseDir = __DIR__ . '/../../';
$dotenv = Dotenv\Dotenv::createUnsafeImmutable($baseDir);
if (file_exists($baseDir . '.env')) {
$dotenv->load();
}
$dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASS', 'DB_PORT']);
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/CustomResponse.php | src/App/CustomResponse.php | <?php
declare(strict_types=1);
namespace App;
use Slim\Psr7\Response as ResponseBase;
final class CustomResponse extends ResponseBase
{
public function withJson(
$data,
int $status = 200,
int $encodingOptions = 0
): self {
$json = json_encode($data, $encodingOptions);
... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Routes.php | src/App/Routes.php | <?php
declare(strict_types=1);
$app->get('/', 'App\Controller\Home:getHelp');
$app->get('/status', 'App\Controller\Home:getStatus');
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Services.php | src/App/Services.php | <?php
declare(strict_types=1);
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/src/App/Middlewares.php | src/App/Middlewares.php | <?php
declare(strict_types=1);
use Slim\App;
return static function (App $app, Closure $customErrorHandler): void {
$path = $_SERVER['SLIM_BASE_PATH'] ?? '';
$app->setBasePath($path);
$app->addRoutingMiddleware();
$app->addBodyParsingMiddleware();
$displayError = filter_var(
$_SERVER['DIS... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/tests/integration/TestCase.php | tests/integration/TestCase.php | <?php
declare(strict_types=1);
namespace Tests\integration;
use PHPUnit\Framework\TestCase as PHPUnit_TestCase;
use Slim\App;
use Slim\Psr7\Factory\StreamFactory;
use Slim\Psr7\Headers;
use Slim\Psr7\Request as SlimRequest;
use Slim\Psr7\Uri;
class TestCase extends PHPUnit_TestCase
{
protected function getAppIn... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/tests/integration/HomeTest.php | tests/integration/HomeTest.php | <?php
declare(strict_types=1);
namespace Tests\integration;
use Fig\Http\Message\StatusCodeInterface;
class HomeTest extends TestCase
{
public function testGetHelp(): void
{
$request = $this->createRequest('GET', '/');
$response = $this->getAppInstance()->handle($request);
$result =... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/tests/integration/CustomResponseTest.php | tests/integration/CustomResponseTest.php | <?php
namespace Tests\integration;
require_once __DIR__.'/../../src/App/CustomResponse.php';
require_once __DIR__.'/../../src/App/ResponseFactory.php';
use App\CustomResponse as Response;
use Slim\Factory\AppFactory;
use Psr\Http\Message\ServerRequestInterface as Request;
class CustomResponseTest extends TestCase
{... | php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
maurobonfietti/slim4-api-skeleton | https://github.com/maurobonfietti/slim4-api-skeleton/blob/081a50ee6d85f1ff01e89d0a63562b571b7f9543/public/index.php | public/index.php | <?php
declare(strict_types=1);
require __DIR__ . '/../src/App/App.php';
$app->run();
| php | MIT | 081a50ee6d85f1ff01e89d0a63562b571b7f9543 | 2026-01-05T04:44:09.079647Z | false |
yllw-digital/laravel-chatgpt-mock-api | https://github.com/yllw-digital/laravel-chatgpt-mock-api/blob/3b5cd52bcc247bef63f11d72a2b74ddebe55972a/src/LaravelChatgptMockApi.php | src/LaravelChatgptMockApi.php | <?php
namespace YellowDigital\LaravelChatgptMockApi;
use Illuminate\Database\Eloquent\Casts\Json;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\Http;
use YellowDigital\LaravelChatgptMockApi\Models\ChatgptMockResponse;
class LaravelChatgptMockApi
{
public function generate(
string $prom... | php | MIT | 3b5cd52bcc247bef63f11d72a2b74ddebe55972a | 2026-01-05T04:44:26.558138Z | false |
yllw-digital/laravel-chatgpt-mock-api | https://github.com/yllw-digital/laravel-chatgpt-mock-api/blob/3b5cd52bcc247bef63f11d72a2b74ddebe55972a/src/LaravelChatgptMockApiServiceProvider.php | src/LaravelChatgptMockApiServiceProvider.php | <?php
namespace YellowDigital\LaravelChatgptMockApi;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use YellowDigital\LaravelChatgptMockApi\Commands\LaravelChatgptMockApiCommand;
class LaravelChatgptMockApiServiceProvider extends PackageServiceProvider
{
public fun... | php | MIT | 3b5cd52bcc247bef63f11d72a2b74ddebe55972a | 2026-01-05T04:44:26.558138Z | false |
yllw-digital/laravel-chatgpt-mock-api | https://github.com/yllw-digital/laravel-chatgpt-mock-api/blob/3b5cd52bcc247bef63f11d72a2b74ddebe55972a/src/Facades/ChatGPTMockApi.php | src/Facades/ChatGPTMockApi.php | <?php
namespace YellowDigital\LaravelChatgptMockApi\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @see \YellowDigital\LaravelChatgptMockApi\LaravelChatgptMockApi
*/
class ChatGPTMockApi extends Facade
{
protected static function getFacadeAccessor()
{
return \YellowDigital\LaravelChatgptMock... | php | MIT | 3b5cd52bcc247bef63f11d72a2b74ddebe55972a | 2026-01-05T04:44:26.558138Z | false |
yllw-digital/laravel-chatgpt-mock-api | https://github.com/yllw-digital/laravel-chatgpt-mock-api/blob/3b5cd52bcc247bef63f11d72a2b74ddebe55972a/src/Models/ChatgptMockResponse.php | src/Models/ChatgptMockResponse.php | <?php
namespace YellowDigital\LaravelChatgptMockApi\Models;
use Illuminate\Database\Eloquent\Model;
class ChatgptMockResponse extends Model {
protected $guarded = [];
} | php | MIT | 3b5cd52bcc247bef63f11d72a2b74ddebe55972a | 2026-01-05T04:44:26.558138Z | false |
yllw-digital/laravel-chatgpt-mock-api | https://github.com/yllw-digital/laravel-chatgpt-mock-api/blob/3b5cd52bcc247bef63f11d72a2b74ddebe55972a/config/chatgpt-mock-api.php | config/chatgpt-mock-api.php | <?php
return [
'openai_key' => env('OPENAI_API_KEY', ''),
];
| php | MIT | 3b5cd52bcc247bef63f11d72a2b74ddebe55972a | 2026-01-05T04:44:26.558138Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/sample.php | sample.php | <?php
/**
* Sample usage
*/
date_default_timezone_set('Europe/Paris');
$sep = str_repeat('-', 20) . "\n";
$date = date('Y-m-d H:i:s');
require_once 'vendor/autoload.php';
use WorkFlowyPHP\WorkFlowy;
use WorkFlowyPHP\WorkFlowyException;
use WorkFlowyPHP\WorkFlowyList;
use WorkFlowyPHP\WorkFlowyAccount;
/**
* Ses... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/autoload.php | src/autoload.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
spl_autoload_register(function ($namespaced_class)
{
preg_match_all('/WorkFlowyPHP\\\(WorkFlowy[a-zA-Z]{0,})/ ', $namespaced_class, $class);
$path = rtrim(dirname(__FILE__), '/') . '/WorkFlowyPHP/' . (!empty($class[1][0]) ? $class[1][0] : ... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowyOPML.php | src/WorkFlowyPHP/WorkFlowyOPML.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowyOPML
{
private $sublist;
/**
* Builds an OPML exporter by using the given list
* @param WorkFlowySublist $sublist
* @throws WorkFlowyException
*/
public function __construct... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowy.php | src/WorkFlowyPHP/WorkFlowy.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowy
{
/**
* Tries to login using the given credentials
* @param string $username
* @param string $password
* @throws WorkFlowyException
* @return string
*/
public static f... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowyList.php | src/WorkFlowyPHP/WorkFlowyList.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowyList
{
private $transport;
private $parents;
private $sublists;
private $dateJoinedTimestampInSeconds = 0;
/**
* Builds a WorkFlowy list
* The class holds the hierarchic relat... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowyTransport.php | src/WorkFlowyPHP/WorkFlowyTransport.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowyTransport
{
const LOGIN_URL = 'https://workflowy.com/ajax_login';
const API_URL = 'https://workflowy.com/%s';
const TIMEOUT = 5;
private $sessionID;
private $clientID;
private $... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowyAccount.php | src/WorkFlowyPHP/WorkFlowyAccount.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowyAccount
{
private $transport;
private $username;
private $theme;
private $email;
private $itemsCreatedInMonth;
private $monthlyQuota;
private $registrationDate;
/**
* B... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowySublist.php | src/WorkFlowyPHP/WorkFlowySublist.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowySublist
{
private $id;
private $name;
private $complete;
private $description;
private $lastModified;
private $sublists;
private $list;
private $transport;
/**
* B... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
johansatge/workflowy-php | https://github.com/johansatge/workflowy-php/blob/8e8f802f492f03b2e7d67f86d70191865978f951/src/WorkFlowyPHP/WorkFlowyException.php | src/WorkFlowyPHP/WorkFlowyException.php | <?php
/* WorkFlowyPHP - https://github.com/johansatge/workflowy-php */
namespace WorkFlowyPHP;
class WorkFlowyException extends \Exception
{
protected $message;
protected $code;
/**
* Builds a custom WorkFlowy exception
* For now, uses the \Exception behavior
* @param string $message
... | php | MIT | 8e8f802f492f03b2e7d67f86d70191865978f951 | 2026-01-05T04:44:38.278253Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/DecoratableFacade.php | src/DecoratableFacade.php | <?php
namespace Imanghafoori\Decorator;
use Illuminate\Support\Facades\Facade;
class DecoratableFacade extends Facade
{
use IamDecoratable;
}
| php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/DecoratorServiceProvider.php | src/DecoratorServiceProvider.php | <?php
namespace Imanghafoori\Decorator;
use Illuminate\Support\ServiceProvider;
use Imanghafoori\Decorator\Decorators\DecoratorFactory;
class DecoratorServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton(DecoratorFactory::class);
$this->app->singleton(D... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/Decorator.php | src/Decorator.php | <?php
namespace Imanghafoori\Decorator;
use Illuminate\Container\Container;
use ReflectionFunction;
use ReflectionMethod;
class Decorator
{
/**
* All the decorators for method calls.
*
* @var array<string, array>
*/
protected $globalDecorators = [];
/**
* All the decorator names... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/IamDecoratable.php | src/IamDecoratable.php | <?php
namespace Imanghafoori\Decorator;
use Illuminate\Container\Container;
trait IamDecoratable
{
/**
* The decorators for resolved object instances of the facade.
*
* @var array<string, array>
*/
protected static $decorations = [];
/**
* The decorators for all the methods.
... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/Facade/Decorator.php | src/Facade/Decorator.php | <?php
namespace Imanghafoori\Decorator\Facade;
use Illuminate\Support\Facades\Facade as LaravelFacade;
/**
* Class Decorator.
*
* @method static define($name, $callback)
* @method static decorate($callback, $decorator)
* @method static call($callback, array $parameters = [], $defaultMethod = null)
* @method st... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/src/Decorators/DecoratorFactory.php | src/Decorators/DecoratorFactory.php | <?php
namespace Imanghafoori\Decorator\Decorators;
use Closure;
use Illuminate\Container\Container;
class DecoratorFactory
{
public static function cache($key, $minutes = 1)
{
return self::getDecoratorFactory($key, 'remember', $minutes);
}
public static function foreverCache($key)
{
... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/tests/CacheResultDecoratorTest.php | tests/CacheResultDecoratorTest.php | <?php
use Illuminate\Container\Container;
use Imanghafoori\Decorator\Decorators\DecoratorFactory;
class CacheResultDecoratorTest extends TestCase
{
public function testCacheResultDecorator()
{
Container::getInstance()->singleton('abc', cachee::class);
\MyFacade::forgetDecorations('getGiven');
... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/tests/FrameworkIntegrationTest.php | tests/FrameworkIntegrationTest.php | <?php
use Imanghafoori\Decorator\Facade\Decorator;
class FrameworkIntegrationTest extends TestCase
{
public function testDecoratableFacade()
{
Decorator::define('stringifyResult', ResultCasterDecorator::class.'@_toString');
Decorator::decorate(Calculator::class.'@add', 'stringifyResult');
... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/tests/DecoratableFacadeTest.php | tests/DecoratableFacadeTest.php | <?php
use Illuminate\Container\Container;
use Imanghafoori\Decorator\Decorator;
use Imanghafoori\Decorator\IamDecoratable;
class DecoratableFacadeTest extends TestCase
{
public function testDecoratableFacade()
{
Container::getInstance()->singleton('abc', abc::class);
\MyFacade::forgetDecoratio... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/tests/TestCase.php | tests/TestCase.php | <?php
abstract class TestCase extends Orchestra\Testbench\TestCase
{
protected function getPackageProviders($app)
{
return [\Imanghafoori\Decorator\DecoratorServiceProvider::class];
}
}
| php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
imanghafoori1/laravel-decorator | https://github.com/imanghafoori1/laravel-decorator/blob/b6d69dc8cd94d3cc37796dfefe734017db4233d1/tests/DecoratorTest.php | tests/DecoratorTest.php | <?php
use Illuminate\Container\Container;
use Imanghafoori\Decorator\Decorator;
class DecoratorTest extends TestCase
{
public function testSimpleDecorator()
{
$decorator = new Decorator();
$decorator->define('stringifyResult', ResultCasterDecorator::class.'@_toString');
$decorator->d... | php | MIT | b6d69dc8cd94d3cc37796dfefe734017db4233d1 | 2026-01-05T04:44:39.081554Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Kernel.php | src/Kernel.php | <?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Compo... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/ConfigFactory.php | src/Config/ConfigFactory.php | <?php
namespace App\Config;
use App\Config\Model\Config;
use Doctrine\DBAL\Connection;
class ConfigFactory
{
private $sourceSchemaManager;
private $tableConfigFactory;
public function __construct(Connection $connection, TableConfigFactory $tableConfigFactory)
{
$this->sourceSchemaManager = ... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/TableConfigFactory.php | src/Config/TableConfigFactory.php | <?php
namespace App\Config;
use App\Config\Model\TableConfig;
use Doctrine\DBAL\Schema as DBAL;
class TableConfigFactory
{
private $columnConfigFactory;
public function __construct(ColumnConfigFactory $columnConfigFactory)
{
$this->columnConfigFactory = $columnConfigFactory;
}
public fu... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/ConfigLoader.php | src/Config/ConfigLoader.php | <?php
namespace App\Config;
use App\Config\Model\Config;
use Symfony\Component\Serializer\Encoder\YamlEncoder;
use Symfony\Component\Serializer\SerializerInterface;
class ConfigLoader
{
public const DEFAULT_FILENAME = 'fogger.yaml';
public const DIRECTORY = '/fogger';
private $serializer;
public fu... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/StrategyExtractor.php | src/Config/StrategyExtractor.php | <?php
namespace App\Config;
use App\Config\Model\ColumnConfig;
class StrategyExtractor
{
private const PATTERN = '/fogger::(\w+)({.*})*/';
public function extract(string $comment = null): ColumnConfig
{
preg_match(self::PATTERN, $comment, $matches);
$name = $matches[1] ?? 'none';
... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/ColumnConfigFactory.php | src/Config/ColumnConfigFactory.php | <?php
namespace App\Config;
use App\Config\Model\ColumnConfig;
use Doctrine\DBAL\Schema as DBAL;
class ColumnConfigFactory
{
private $extractor;
public function __construct(StrategyExtractor $extractor)
{
$this->extractor = $extractor;
}
public function createFromDBALColumn(DBAL\Column ... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/Model/ColumnConfig.php | src/Config/Model/ColumnConfig.php | <?php
namespace App\Config\Model;
class ColumnConfig
{
const NONE_STRATEGY = 'none';
private $maskStrategy;
private $options;
public function __construct(string $maskStrategy = self::NONE_STRATEGY, array $options = [])
{
$this->maskStrategy = $maskStrategy;
$this->options = $opt... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/Model/TableConfig.php | src/Config/Model/TableConfig.php | <?php
namespace App\Config\Model;
class TableConfig
{
private $columns = [];
private $subsetStrategy = null;
private $subsetOptions = [];
public function getColumns(): array
{
return $this->columns;
}
public function getColumn(string $name): ?ColumnConfig
{
return $... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/Model/Config.php | src/Config/Model/Config.php | <?php
namespace App\Config\Model;
class Config
{
private $tables = [];
private $excludes = [];
/**
* @return TableConfig[]
*/
public function getTables(): array
{
return $this->tables;
}
public function addTable(string $name, TableConfig $table)
{
$this->ta... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/Serializer/TableConfigDenormalizer.php | src/Config/Serializer/TableConfigDenormalizer.php | <?php
namespace App\Config\Serializer;
use App\Config\Model\ColumnConfig;
use App\Config\Model\TableConfig;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class TableConfigDenormalizer implements DenormalizerInterface
{
use D... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Config/Serializer/ConfigDenormalizer.php | src/Config/Serializer/ConfigDenormalizer.php | <?php
namespace App\Config\Serializer;
use App\Config\Model\Config;
use App\Config\Model\TableConfig;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class ConfigDenormalizer implements DenormalizerInterface
{
use Denormalizer... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/SchemaManipulator.php | src/Fogger/Schema/SchemaManipulator.php | <?php
namespace App\Fogger\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema as DBAL;
class SchemaManipulator
{
private $sourceSchema;
private $targetSchema;
public function __construct(Connection $source, Connection $target)
{
$this->sourceSchema = $source->getSchemaManager();... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/ForeignKeysExtractor.php | src/Fogger/Schema/ForeignKeysExtractor.php | <?php
namespace App\Fogger\Schema;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema as Schema;
class ForeignKeysExtractor
{
private $source;
public function __construct(Connection $source)
{
$this->source = $source->getSchemaManager();
}
public function findForeignKeysReferencingT... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/RelationGroupsFactory.php | src/Fogger/Schema/RelationGroupsFactory.php | <?php
namespace App\Fogger\Schema;
use App\Fogger\Schema\RelationGroups\RelationsGroups;
use Doctrine\DBAL\Connection;
class RelationGroupsFactory
{
private $sourceSchema;
public function __construct(Connection $connection)
{
$this->sourceSchema = $connection->getSchemaManager();
}
publ... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/RelationGroups/RelationColumn.php | src/Fogger/Schema/RelationGroups/RelationColumn.php | <?php
namespace App\Fogger\Schema\RelationGroups;
class RelationColumn
{
const DESCRIPTOR_PATTERN = '%s.%s';
private $table;
private $columns;
public function __construct(string $table, array $columns)
{
$this->table = $table;
$this->columns = $columns;
}
public functio... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/RelationGroups/RelationsGroups.php | src/Fogger/Schema/RelationGroups/RelationsGroups.php | <?php
namespace App\Fogger\Schema\RelationGroups;
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
class RelationsGroups
{
private $groups = [];
private function getGroupContainingColumn(RelationColumn $column)
{
/** @var GrouppedRelationColumns $group */
foreach ($this->groups as $group) ... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Schema/RelationGroups/GrouppedRelationColumns.php | src/Fogger/Schema/RelationGroups/GrouppedRelationColumns.php | <?php
namespace App\Fogger\Schema\RelationGroups;
class GrouppedRelationColumns
{
private $columns = [];
public function addRelationColumn(RelationColumn $column)
{
if ($this->contains($column)) {
return;
}
$this->columns[$column->getDescriptor()] = $column;
}
... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Refine/Refiner.php | src/Fogger/Refine/Refiner.php | <?php
namespace App\Fogger\Refine;
use App\Fogger\Recipe\Recipe;
use App\Fogger\Recipe\Table;
use App\Fogger\Schema\ForeignKeysExtractor;
use App\Fogger\Subset\NoSubset;
use Doctrine\DBAL\Schema as Schema;
class Refiner
{
private $extractor;
private $refineExecutor;
public function __construct(
... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Refine/RefineExecutor.php | src/Fogger/Refine/RefineExecutor.php | <?php
namespace App\Fogger\Refine;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema as Schema;
class RefineExecutor
{
private $target;
public function __construct(Connection $target)
{
$this->target = $target;
}
private function innerSelectFromCopiedTable(Schema\ForeignKeyConstrai... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Subset/AbstractSubset.php | src/Fogger/Subset/AbstractSubset.php | <?php
namespace App\Fogger\Subset;
use App\Fogger\Subset\Exception\RequiredOptionMissingException;
abstract class AbstractSubset implements SubsetStrategyInterface
{
abstract protected function getSubsetStrategyName(): string;
public function supports(string $name): bool
{
return $name === $this... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Subset/TailSubset.php | src/Fogger/Subset/TailSubset.php | <?php
namespace App\Fogger\Subset;
use App\Fogger\Recipe\Table;
use Doctrine\DBAL\Query\QueryBuilder;
class TailSubset extends AbstratctHeadOrTailSubset
{
/**
* @param QueryBuilder $queryBuilder
* @param Table $table
* @return QueryBuilder
* @throws Exception\RequiredOptionMissingException
... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Subset/SubsetStrategyProvider.php | src/Fogger/Subset/SubsetStrategyProvider.php | <?php
namespace App\Fogger\Subset;
use App\Fogger\Subset\Exception\UnknownSubsetStrategyException;
class SubsetStrategyProvider
{
private $subsetStrategies = [];
public function __construct(iterable $subsetStrategies)
{
foreach ($subsetStrategies as $subsetStrategy) {
$this->addSubse... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Subset/SubsetStrategyInterface.php | src/Fogger/Subset/SubsetStrategyInterface.php | <?php
namespace App\Fogger\Subset;
use App\Fogger\Recipe\Table;
use Doctrine\DBAL\Query\QueryBuilder;
interface SubsetStrategyInterface
{
public function subsetQuery(QueryBuilder $queryBuilder, Table $table): QueryBuilder;
public function supports(string $name): bool;
}
| php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
TheSoftwareHouse/fogger | https://github.com/TheSoftwareHouse/fogger/blob/733ebda8ad9bec0a903f8252da8e242525de24f6/src/Fogger/Subset/NoSubset.php | src/Fogger/Subset/NoSubset.php | <?php
namespace App\Fogger\Subset;
use App\Fogger\Recipe\Table;
use Doctrine\DBAL\Query\QueryBuilder;
class NoSubset extends AbstractSubset
{
const STRATEGY_NAME = 'noSubset';
public function subsetQuery(QueryBuilder $queryBuilder, Table $table): QueryBuilder
{
return $queryBuilder;
}
p... | php | MIT | 733ebda8ad9bec0a903f8252da8e242525de24f6 | 2026-01-05T04:45:10.065464Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.