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 |
|---|---|---|---|---|---|---|---|---|
Bit-Wasp/bitcoin-lib-php | https://github.com/Bit-Wasp/bitcoin-lib-php/blob/d4e46fdd1edc29fae7b359d2bde952e37d143c45/examples/bip32_sign.php | examples/bip32_sign.php | <?php
use BitWasp\BitcoinLib\BIP32;
use BitWasp\BitcoinLib\BitcoinLib;
use BitWasp\BitcoinLib\RawTransaction;
require_once(__DIR__. '/../vendor/autoload.php');
// Fixed seed and derivation to test with
$seed = '41414141414141414141414141414141414141';
$def = "0'/0";
// Create master key from seed
$master = BIP32::m... | php | Unlicense | d4e46fdd1edc29fae7b359d2bde952e37d143c45 | 2026-01-05T04:49:06.611442Z | false |
spatie/laravel-tinker-tools | https://github.com/spatie/laravel-tinker-tools/blob/3272afa5bdc30f2cac9e437450d9e182a648c046/src/ShortClassNames.php | src/ShortClassNames.php | <?php
namespace Spatie\TinkerTools;
use ReflectionClass;
class ShortClassNames
{
/** @var \Illuminate\Support\Collection */
public $classes;
public static function register(string $classMapPath = null)
{
$classMapPath = $classMapPath ?? base_path('vendor/composer/autoload_classmap.php');
... | php | MIT | 3272afa5bdc30f2cac9e437450d9e182a648c046 | 2026-01-05T04:49:16.595106Z | false |
spatie/laravel-tinker-tools | https://github.com/spatie/laravel-tinker-tools/blob/3272afa5bdc30f2cac9e437450d9e182a648c046/tests/ShortClassNamesTest.php | tests/ShortClassNamesTest.php | <?php
namespace Spatie\TinkerTools\Test;
use Error;
use PHPUnit\Framework\TestCase;
use Spatie\TinkerTools\ShortClassNames;
class ShortClassNamesTest extends TestCase
{
/** @test */
public function it_can_register_short_name_classes()
{
$foundClass = false;
try {
\NamespacedC... | php | MIT | 3272afa5bdc30f2cac9e437450d9e182a648c046 | 2026-01-05T04:49:16.595106Z | false |
spatie/laravel-tinker-tools | https://github.com/spatie/laravel-tinker-tools/blob/3272afa5bdc30f2cac9e437450d9e182a648c046/tests/NamespacedClass.php | tests/NamespacedClass.php | <?php
namespace Spatie\TinkerTools\Test;
class NamespacedClass
{
public static function getGreeting(): string
{
return 'Oh, hi Mark';
}
}
| php | MIT | 3272afa5bdc30f2cac9e437450d9e182a648c046 | 2026-01-05T04:49:16.595106Z | false |
spatie/commonmark-highlighter | https://github.com/spatie/commonmark-highlighter/blob/cd96e93aa775d3fac4a3722054b7393f911f54ba/src/CodeBlockHighlighter.php | src/CodeBlockHighlighter.php | <?php
namespace Spatie\CommonMarkHighlighter;
use DomainException;
use Highlight\Highlighter;
use function HighlightUtilities\splitCodeIntoArray;
class CodeBlockHighlighter
{
/** @var \Highlight\Highlighter */
protected $highlighter;
public function __construct(array $autodetectLanguages = [])
{
... | php | MIT | cd96e93aa775d3fac4a3722054b7393f911f54ba | 2026-01-05T04:49:26.291966Z | false |
spatie/commonmark-highlighter | https://github.com/spatie/commonmark-highlighter/blob/cd96e93aa775d3fac4a3722054b7393f911f54ba/src/FencedCodeRenderer.php | src/FencedCodeRenderer.php | <?php
namespace Spatie\CommonMarkHighlighter;
use League\CommonMark\Extension\CommonMark\Node\Block\FencedCode;
use League\CommonMark\Extension\CommonMark\Renderer\Block\FencedCodeRenderer as BaseFencedCodeRenderer;
use League\CommonMark\Node\Node;
use League\CommonMark\Renderer\ChildNodeRendererInterface;
use League... | php | MIT | cd96e93aa775d3fac4a3722054b7393f911f54ba | 2026-01-05T04:49:26.291966Z | false |
spatie/commonmark-highlighter | https://github.com/spatie/commonmark-highlighter/blob/cd96e93aa775d3fac4a3722054b7393f911f54ba/src/IndentedCodeRenderer.php | src/IndentedCodeRenderer.php | <?php
namespace Spatie\CommonMarkHighlighter;
use League\CommonMark\Extension\CommonMark\Renderer\Block\IndentedCodeRenderer as BaseIndentedCodeRenderer;
use League\CommonMark\Node\Node;
use League\CommonMark\Renderer\ChildNodeRendererInterface;
use League\CommonMark\Renderer\NodeRendererInterface;
class IndentedCod... | php | MIT | cd96e93aa775d3fac4a3722054b7393f911f54ba | 2026-01-05T04:49:26.291966Z | false |
spatie/commonmark-highlighter | https://github.com/spatie/commonmark-highlighter/blob/cd96e93aa775d3fac4a3722054b7393f911f54ba/tests/IndentedCodeRendererTest.php | tests/IndentedCodeRendererTest.php | <?php
namespace Spatie\CommonMarkHighlighter\Tests;
use League\CommonMark\Environment\Environment;
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
use League\CommonMark\Extension\CommonMark\Node\Block\IndentedCode;
use League\CommonMark\Parser\MarkdownParser;
use League\CommonMark\Renderer\HtmlRen... | php | MIT | cd96e93aa775d3fac4a3722054b7393f911f54ba | 2026-01-05T04:49:26.291966Z | false |
spatie/commonmark-highlighter | https://github.com/spatie/commonmark-highlighter/blob/cd96e93aa775d3fac4a3722054b7393f911f54ba/tests/FencedCodeRendererTest.php | tests/FencedCodeRendererTest.php | <?php
namespace Spatie\CommonMarkHighlighter\Tests;
use League\CommonMark\Environment\Environment;
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
use League\CommonMark\Extension\CommonMark\Node\Block\FencedCode;
use League\CommonMark\Parser\MarkdownParser;
use League\CommonMark\Renderer\HtmlRende... | php | MIT | cd96e93aa775d3fac4a3722054b7393f911f54ba | 2026-01-05T04:49:26.291966Z | false |
voocx/laravel-referral | https://github.com/voocx/laravel-referral/blob/6c3a7244af09eadad1aeccddc97dfdea938161e1/src/ReferralServiceProvider.php | src/ReferralServiceProvider.php | <?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <zhengchaopu@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Questocat\Referral;
use Illuminate\Support\ServiceProvider;
class Referral... | php | MIT | 6c3a7244af09eadad1aeccddc97dfdea938161e1 | 2026-01-05T04:49:35.339667Z | false |
voocx/laravel-referral | https://github.com/voocx/laravel-referral/blob/6c3a7244af09eadad1aeccddc97dfdea938161e1/src/Http/Middleware/CheckReferral.php | src/Http/Middleware/CheckReferral.php | <?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <zhengchaopu@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Questocat\Referral\Http\Middleware;
use Closure;
class CheckReferral
{
... | php | MIT | 6c3a7244af09eadad1aeccddc97dfdea938161e1 | 2026-01-05T04:49:35.339667Z | false |
voocx/laravel-referral | https://github.com/voocx/laravel-referral/blob/6c3a7244af09eadad1aeccddc97dfdea938161e1/src/Traits/UserReferral.php | src/Traits/UserReferral.php | <?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <zhengchaopu@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Questocat\Referral\Traits;
use Illuminate\Database\Eloquent\Builder;
use Il... | php | MIT | 6c3a7244af09eadad1aeccddc97dfdea938161e1 | 2026-01-05T04:49:35.339667Z | false |
voocx/laravel-referral | https://github.com/voocx/laravel-referral/blob/6c3a7244af09eadad1aeccddc97dfdea938161e1/config/referral.php | config/referral.php | <?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <zhengchaopu@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
return [
/*
* Model class name of users.
*/
'user_model' => 'App\Use... | php | MIT | 6c3a7244af09eadad1aeccddc97dfdea938161e1 | 2026-01-05T04:49:35.339667Z | false |
voocx/laravel-referral | https://github.com/voocx/laravel-referral/blob/6c3a7244af09eadad1aeccddc97dfdea938161e1/database/migrations/add_referral_to_users_table.php | database/migrations/add_referral_to_users_table.php | <?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <zhengchaopu@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint... | php | MIT | 6c3a7244af09eadad1aeccddc97dfdea938161e1 | 2026-01-05T04:49:35.339667Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidRet... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
$finder = (new Finder())
->in(__DIR__)
->exclude(['vendor', 'var', 'web'])
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Kernel.php | src/Kernel.php | <?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Webfeeds/Webfeeds.php | src/Webfeeds/Webfeeds.php | <?php
namespace App\Webfeeds;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Webfeeds.
*
* @see http://webfeeds.org/rss/1.0
*/
class Webfeeds
{
/**
* @var string|null
*/
#[Assert\Url]
private $logo;
/**
* @var string|null
*/
#[Assert\Url]
private $icon;
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Webfeeds/WebfeedsWriter.php | src/Webfeeds/WebfeedsWriter.php | <?php
namespace App\Webfeeds;
use MarcW\RssWriter\RssWriter;
use MarcW\RssWriter\WriterRegistererInterface;
/**
* WebfeedsWriter.
*
* Mostly used (or handled) by Feedly.
*
* @see https://blog.feedly.com/10-ways-to-optimize-your-feed-for-feedly/
*/
class WebfeedsWriter implements WriterRegistererInterface
{
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Entity/Version.php | src/Entity/Version.php | <?php
namespace App\Entity;
use App\Repository\VersionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Version
* Which is an alias of Release (because RELEASE is a reserved keywords).
*/
#[ORM\Entity(repositoryClass: VersionRepository::class)]
#[ORM\Table(name: 'version')]
#[ORM\Index(name: 'created_at_idx', co... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Entity/Star.php | src/Entity/Star.php | <?php
namespace App\Entity;
use App\Repository\StarRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Repo.
*/
#[ORM\Entity(repositoryClass: StarRepository::class)]
#[ORM\Table(name: 'star')]
#[ORM\UniqueConstraint(name: 'user_repo_unique', columns: ['user_id', 'repo_id'])]
class Star
{
/**
* @var int
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Entity/User.php | src/Entity/User.php | <?php
namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use League\OAuth2\Client\Provider\GithubResourceOwner;
use Ramsey\Uuid\Uuid;
use Symfony\Component\Security\Core\User\EquatableInterface;
use Symfony\Component\Security\Core... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Entity/Repo.php | src/Entity/Repo.php | <?php
namespace App\Entity;
use App\Repository\RepoRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Repo.
*/
#[ORM\Entity(repositoryClass: RepoRepository::class)]
#[ORM\HasLifecycleCallbacks]
#[ORM\Table(name: 'repo')]
class Repo
{
/**
* @var int
*/
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/MessageHandler/VersionsSyncHandler.php | src/MessageHandler/VersionsSyncHandler.php | <?php
namespace App\MessageHandler;
use App\Entity\Repo;
use App\Entity\Version;
use App\Github\RateLimitTrait;
use App\Message\VersionsSync;
use App\PubSubHubbub\Publisher;
use App\Repository\RepoRepository;
use App\Repository\VersionRepository;
use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistr... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/MessageHandler/StarredReposSyncHandler.php | src/MessageHandler/StarredReposSyncHandler.php | <?php
namespace App\MessageHandler;
use App\Entity\Repo;
use App\Entity\Star;
use App\Entity\User;
use App\Github\RateLimitTrait;
use App\Message\StarredReposSync;
use App\Repository\RepoRepository;
use App\Repository\StarRepository;
use App\Repository\UserRepository;
use Doctrine\ORM\EntityManager;
use Doctrine\Pers... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Controller/DefaultController.php | src/Controller/DefaultController.php | <?php
namespace App\Controller;
use App\Entity\User;
use App\Pagination\Exception\InvalidPageNumberException;
use App\Pagination\Paginator;
use App\Repository\RepoRepository;
use App\Repository\StarRepository;
use App\Repository\UserRepository;
use App\Repository\VersionRepository;
use App\Rss\Generator;
use KnpU\OAu... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Twig/RepoVersionExtension.php | src/Twig/RepoVersionExtension.php | <?php
namespace App\Twig;
use Twig\Attribute\AsTwigFilter;
/**
* Took a repo with version information to display a link to that version on Github.
*/
class RepoVersionExtension
{
#[AsTwigFilter('link_to_version')]
public function linkToVersion(array $repo): ?string
{
if (!isset($repo['fullName'... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Twig/PaginationExtension.php | src/Twig/PaginationExtension.php | <?php
namespace App\Twig;
use App\Pagination\Pagination;
use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
/**
* Class SimplePaginationExtension.
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
class PaginationExtension extends AbstractExtension
{
public function get... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/PubSubHubbub/Publisher.php | src/PubSubHubbub/Publisher.php | <?php
namespace App\PubSubHubbub;
use App\Repository\UserRepository;
use GuzzleHttp\Client;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
/**
* Publish feed to pubsubhubbub.appspot.com.
*/
class Publisher
{
/**
* Create a new publisher.
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Github/ClientDiscovery.php | src/Github/ClientDiscovery.php | <?php
namespace App\Github;
use App\Cache\CustomRedisCachePool;
use App\Repository\UserRepository;
use Github\AuthMethod;
use Github\Client as GithubClient;
use Predis\Client as RedisClient;
use Psr\Log\LoggerInterface;
/**
* This class aim to find the best authenticated method to avoid hitting the Github rate limi... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Github/RateLimitTrait.php | src/Github/RateLimitTrait.php | <?php
namespace App\Github;
use Github\Api\RateLimit;
use Github\Client;
use Http\Client\Exception\HttpException;
use Psr\Log\LoggerInterface;
trait RateLimitTrait
{
/**
* Retrieve rate limit for the given authenticated client.
* It's in a separate method to be able to catch error in case of glimpse on... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Message/StarredReposSync.php | src/Message/StarredReposSync.php | <?php
namespace App\Message;
class StarredReposSync
{
public function __construct(private readonly int $userId)
{
}
public function getUserId(): int
{
return $this->userId;
}
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Message/VersionsSync.php | src/Message/VersionsSync.php | <?php
namespace App\Message;
class VersionsSync
{
public function __construct(private readonly int $repoId)
{
}
public function getRepoId(): int
{
return $this->repoId;
}
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Cache/HierarchicalCachePoolTrait.php | src/Cache/HierarchicalCachePoolTrait.php | <?php
/*
* This file is part of php-cache organization.
*
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace App\Cache;
use Cache\Adapter\Common\Abstr... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Cache/CustomRedisCachePool.php | src/Cache/CustomRedisCachePool.php | <?php
namespace App\Cache;
use Cache\Adapter\Common\PhpCacheItem;
/**
* Store lightweight response from GitHub to avoid having a huge Redis database.
* Stored response will only have what Bandito.re needs. We should use GraphQL to only request fields we want
* but rate limit is still too low for the app.
*
* Af... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Cache/PredisCachePool.php | src/Cache/PredisCachePool.php | <?php
namespace App\Cache;
use Cache\Adapter\Common\AbstractCachePool;
use Cache\Adapter\Common\PhpCacheItem;
use Predis\ClientInterface as Client;
/**
* Kind of copy/pasted from `cache/predis-adapter` because the project looks dead.
*/
class PredisCachePool extends AbstractCachePool
{
use HierarchicalCachePoo... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Pagination/Pagination.php | src/Pagination/Pagination.php | <?php
namespace App\Pagination;
/**
* Class Pagination.
*
* @implements \IteratorAggregate<int, mixed>
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
class Pagination implements \IteratorAggregate, \Countable
{
private array $items = [];
private array $pages = [];
private int $totalNumberO... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Pagination/Paginator.php | src/Pagination/Paginator.php | <?php
namespace App\Pagination;
use App\Pagination\Exception\CallbackNotFoundException;
use App\Pagination\Exception\InvalidPageNumberException;
/**
* Class Paginator.
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
class Paginator implements PaginatorInterface
{
/**
* @var \Closure
*/
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Pagination/PaginatorInterface.php | src/Pagination/PaginatorInterface.php | <?php
namespace App\Pagination;
/**
* Interface PaginatorInterface.
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
interface PaginatorInterface
{
/**
* Run paginate algorithm using the current page number.
*
* @param int $currentPageNumber Page number, usually passed from the current ... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Pagination/Exception/InvalidPageNumberException.php | src/Pagination/Exception/InvalidPageNumberException.php | <?php
namespace App\Pagination\Exception;
/**
* Class InvalidPageNumberException.
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
class InvalidPageNumberException extends \InvalidArgumentException
{
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Pagination/Exception/CallbackNotFoundException.php | src/Pagination/Exception/CallbackNotFoundException.php | <?php
namespace App\Pagination\Exception;
/**
* Class CallbackNotFoundException.
*
* @author Ashley Dawson <ashley@ashleydawson.co.uk>
*/
class CallbackNotFoundException extends \RuntimeException
{
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/DataFixtures/AppFixtures.php | src/DataFixtures/AppFixtures.php | <?php
namespace App\DataFixtures;
use App\Entity\Repo;
use App\Entity\Star;
use App\Entity\User;
use App\Entity\Version;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
class AppFixtures extends Fixture
{
public function load(ObjectManager $manager): void
{
$this->... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Rss/Generator.php | src/Rss/Generator.php | <?php
namespace App\Rss;
use App\Entity\User;
use App\Webfeeds\Webfeeds;
use MarcW\RssWriter\Extension\Atom\AtomLink;
use MarcW\RssWriter\Extension\Core\Channel;
use MarcW\RssWriter\Extension\Core\Guid;
use MarcW\RssWriter\Extension\Core\Item;
/**
* Generate the RSS for a user.
*/
class Generator
{
public cons... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Repository/RepoRepository.php | src/Repository/RepoRepository.php | <?php
namespace App\Repository;
use App\Entity\Repo;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @method Repo|null findOneByFullName(string $fullName)
*
* @extends ServiceEntityRepository<Repo>
*/
class RepoRepository extends ServiceEntit... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Repository/VersionRepository.php | src/Repository/VersionRepository.php | <?php
namespace App\Repository;
use App\Entity\Version;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\AbstractQuery;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Version>
*/
class VersionRepository extends ServiceEntityRepository
{
p... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Repository/StarRepository.php | src/Repository/StarRepository.php | <?php
namespace App\Repository;
use App\Entity\Star;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Star>
*/
class StarRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistr... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Repository/UserRepository.php | src/Repository/UserRepository.php | <?php
namespace App\Repository;
use App\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @method User|null findOneByUsername(string $username)
*
* @extends ServiceEntityRepository<User>
*/
class UserRepository extends ServiceEntit... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Security/GithubAuthenticator.php | src/Security/GithubAuthenticator.php | <?php
namespace App\Security;
use App\Entity\User;
use App\Entity\Version;
use App\Message\StarredReposSync;
use App\Repository\VersionRepository;
use Doctrine\ORM\EntityManagerInterface;
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
use KnpU\OAuth2ClientBundle\Security\Authenticator\OAuth2Authenticator;
use Lea... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Command/SyncStarredReposCommand.php | src/Command/SyncStarredReposCommand.php | <?php
namespace App\Command;
use App\Message\StarredReposSync;
use App\MessageHandler\StarredReposSyncHandler;
use App\Repository\UserRepository;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Attribute\Option;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Cons... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/src/Command/SyncVersionsCommand.php | src/Command/SyncVersionsCommand.php | <?php
namespace App\Command;
use App\Message\VersionsSync;
use App\MessageHandler\VersionsSyncHandler;
use App\Repository\RepoRepository;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Attribute\Option;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Outp... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/object-manager.php | tests/object-manager.php | <?php
use App\Kernel;
require dirname(__DIR__) . '/tests/bootstrap.php';
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/console-application.php | tests/console-application.php | <?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
/**
* @see https://github.com/phpstan/phpstan-symfony#console-command-analysis
*/
require dirname(__DIR__) . '/tests/bootstrap.php';
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
return new Application($kernel... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/bootstrap.php | tests/bootstrap.php | <?php
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__) . '/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
}
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Webfeeds/WebfeedsWriterTest.php | tests/Webfeeds/WebfeedsWriterTest.php | <?php
namespace App\Tests\Webfeeds;
use App\Webfeeds\Webfeeds;
use App\Webfeeds\WebfeedsWriter;
use MarcW\RssWriter\RssWriter;
use PHPUnit\Framework\TestCase;
class WebfeedsWriterTest extends TestCase
{
public function test(): void
{
$writer = new WebfeedsWriter();
$rssWriter = new RssWriter(... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Webfeeds/WebfeedsTest.php | tests/Webfeeds/WebfeedsTest.php | <?php
namespace App\Tests\Webfeeds;
use App\Webfeeds\Webfeeds;
use PHPUnit\Framework\TestCase;
class WebfeedsTest extends TestCase
{
public function test(): void
{
$webfeeds = new Webfeeds();
$webfeeds->setLogo('https://upload.wikimedia.org/wikipedia/commons/a/ab/Logo_TV_2015.png')
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/MessageHandler/StarredReposSyncHandlerTest.php | tests/MessageHandler/StarredReposSyncHandlerTest.php | <?php
namespace App\Tests\MessageHandler;
use App\Entity\Repo;
use App\Entity\User;
use App\Message\StarredReposSync;
use App\MessageHandler\StarredReposSyncHandler;
use App\Repository\RepoRepository;
use App\Repository\StarRepository;
use App\Repository\UserRepository;
use Doctrine\Bundle\DoctrineBundle\Registry;
us... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/MessageHandler/VersionsSyncHandlerTest.php | tests/MessageHandler/VersionsSyncHandlerTest.php | <?php
namespace App\Tests\MessageHandler;
use App\Entity\Repo;
use App\Entity\Version;
use App\Message\VersionsSync;
use App\MessageHandler\VersionsSyncHandler;
use App\PubSubHubbub\Publisher;
use App\Repository\RepoRepository;
use App\Repository\VersionRepository;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doc... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | true |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Controller/DefaultControllerTest.php | tests/Controller/DefaultControllerTest.php | <?php
namespace App\Tests\Controller;
use App\Entity\User;
use App\Repository\UserRepository;
use MarcW\RssWriter\Bridge\Symfony\HttpFoundation\RssStreamedResponse;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\RedirectRespo... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Twig/RepoVersionExtensionTest.php | tests/Twig/RepoVersionExtensionTest.php | <?php
namespace App\Tests\Twig;
use App\Twig\RepoVersionExtension;
use PHPUnit\Framework\TestCase;
class RepoVersionExtensionTest extends TestCase
{
public function test(): void
{
$ext = new RepoVersionExtension();
$this->assertSame('repo_version_extension', $ext->getName());
$this-... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/PubSubHubbub/PublisherTest.php | tests/PubSubHubbub/PublisherTest.php | <?php
namespace App\Tests\PubSubHubbub;
use App\PubSubHubbub\Publisher;
use App\Repository\UserRepository;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfon... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Github/ClientDiscoveryTest.php | tests/Github/ClientDiscoveryTest.php | <?php
namespace App\Tests\Github;
use App\Github\ClientDiscovery;
use App\Repository\UserRepository;
use Github\Client as GithubClient;
use Github\HttpClient\Builder;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use Http\Adapter\Guzzle7\Client a... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Cache/CustomRedisCachePoolTest.php | tests/Cache/CustomRedisCachePoolTest.php | <?php
namespace App\Tests\Cache;
use App\Cache\CustomRedisCachePool;
use Cache\Adapter\Common\CacheItem;
use GuzzleHttp\Psr7\Response;
use Predis\ClientInterface;
use Predis\Response\Status;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class CustomRedisCachePoolTest extends WebTestCase
{
public function ... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Rss/GeneratorTest.php | tests/Rss/GeneratorTest.php | <?php
namespace App\Tests\Rss;
use App\Entity\User;
use App\Rss\Generator;
use PHPUnit\Framework\TestCase;
class GeneratorTest extends TestCase
{
public function test(): void
{
$user = new User();
$user->setId(123);
$user->setUsername('bob');
$user->setName('Bobby');
... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Security/GithubAuthenticatorTest.php | tests/Security/GithubAuthenticatorTest.php | <?php
namespace App\Tests\Security;
use App\Entity\User;
use App\Message\StarredReposSync;
use App\Repository\UserRepository;
use Github\Client as GithubClient;
use Github\HttpClient\Builder;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use Http... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Command/SyncStarredReposCommandTest.php | tests/Command/SyncStarredReposCommandTest.php | <?php
namespace App\Tests\Command;
use App\Command\SyncStarredReposCommand;
use App\Message\StarredReposSync;
use App\MessageHandler\StarredReposSyncHandler;
use App\Repository\UserRepository;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Output\BufferedOutput;
use Symfony\Comp... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/tests/Command/SyncVersionsCommandTest.php | tests/Command/SyncVersionsCommandTest.php | <?php
namespace App\Tests\Command;
use App\Command\SyncVersionsCommand;
use App\Message\VersionsSync;
use App\MessageHandler\VersionsSyncHandler;
use App\Repository\RepoRepository;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Output\BufferedOutput;
use Symfony\Component\Messen... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/public/index.php | public/index.php | <?php
use App\Kernel;
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
return fn (array $context) => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/migrations/Version20170222055642.php | migrations/Version20170222055642.php | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add homepage & language to the repo entity.
*/
final class Version20170222055642 extends AbstractMigration
{
public function getDescription(): string
{
ret... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/migrations/Version20200511062812.php | migrations/Version20200511062812.php | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Mark a user as removed to avoid checking for new starred repos in the future.
*/
final class Version20200511062812 extends AbstractMigration
{
public function getDescr... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/migrations/Version20180827105910.php | migrations/Version20180827105910.php | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Mark a repo as removed to avoid checking for new version in the future.
*/
final class Version20180827105910 extends AbstractMigration
{
public function getDescription... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/migrations/Version20200613153754.php | migrations/Version20200613153754.php | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Enforce some relations to not be null.
*/
final class Version20200613153754 extends AbstractMigration
{
public function getDescription(): string
{
return '... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/migrations/Version20170329095349.php | migrations/Version20170329095349.php | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* GitHub name can be null.
*/
final class Version20170329095349 extends AbstractMigration
{
public function getDescription(): string
{
return 'GitHub name ca... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/config/preload.php | config/preload.php | <?php
if (file_exists(dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php';
}
| php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/config/reference.php | config/reference.php | <?php
// This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
/**
* This class provides array-shapes for configuring the services and bundles of an application.
*
* Services declared with the config() method ... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | true |
j0k3r/banditore | https://github.com/j0k3r/banditore/blob/8b3f266d748406c74b6971f95ad9a62003365e8a/config/bundles.php | config/bundles.php | <?php
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle;
use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
use Knp\Bundle\TimeBundle\KnpTimeBundle;
use KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle;
use Sentry\SentryBundle\SentryBundle;
use Snc\R... | php | MIT | 8b3f266d748406c74b6971f95ad9a62003365e8a | 2026-01-05T04:49:43.160258Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/NodeNotFound.php | src/NodeNotFound.php | <?php
namespace React\Filesystem;
use React\EventLoop\ExtUvLoop;
use React\Filesystem\Node\FileInterface;
use React\Filesystem\Stat;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use RuntimeException;
use React\EventLoop\LoopInterface;
use React\Filesystem\Node;
use UV;
final class NodeNotFound exte... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/FlagResolver.php | src/FlagResolver.php | <?php
namespace React\Filesystem;
abstract class FlagResolver
{
/**
* @param string $flagString
* @param null|int $flags
* @param null|array $mapping
* @return int
*/
public function resolve($flagString, $flags = null, $mapping = null)
{
if ($flags === null) {
... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/AdapterInterface.php | src/AdapterInterface.php | <?php
namespace React\Filesystem;
use React\Filesystem\Node;
use React\Promise\PromiseInterface;
interface AdapterInterface
{
/**
* @return PromiseInterface<Node\NodeInterface>
*/
public function detect(string $path): PromiseInterface;
public function directory(string $path): Node\DirectoryInt... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/PollInterface.php | src/PollInterface.php | <?php
namespace React\Filesystem;
use UV;
interface PollInterface
{
public function activate(): void;
public function deactivate(): void;
}
| php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/FlagResolverInterface.php | src/FlagResolverInterface.php | <?php
namespace React\Filesystem;
interface FlagResolverInterface
{
/**
* @return int
*/
public function defaultFlags();
/**
* @return array
*/
public function flagMapping();
}
| php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/TypeDetectorInterface.php | src/TypeDetectorInterface.php | <?php
namespace React\Filesystem;
interface TypeDetectorInterface
{
/**
* @param AdapterInterface $filesystem
*/
public function __construct(AdapterInterface $filesystem);
/**
* @param array $node
* @return React\Promise\PromiseInterface
*/
public function detect(array $node)... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Stat.php | src/Stat.php | <?php
namespace React\Filesystem;
use React\EventLoop\ExtUvLoop;
use React\EventLoop\LoopInterface;
final class Stat
{
private string $path;
/** @var array<string, mixed> */
private array $data;
public function __construct(string $path, array $data)
{
$this->path = $path;
$this->... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/ModeTypeDetector.php | src/ModeTypeDetector.php | <?php
namespace React\Filesystem;
use React\EventLoop\ExtUvLoop;
use React\EventLoop\LoopInterface;
use React\Filesystem\Node\DirectoryInterface;
use React\Filesystem\Node\FileInterface;
use React\Filesystem\Node\Unknown;
final class ModeTypeDetector
{
private const FILE = 0x8000;
private const DIRECTORY = 0... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Factory.php | src/Factory.php | <?php
namespace React\Filesystem;
use React\EventLoop\ExtUvLoop;
use React\EventLoop\Loop;
use React\Filesystem\Uv;
use React\Filesystem\Eio;
final class Factory
{
public static function create(): AdapterInterface
{
if (\function_exists('eio_get_event_stream')) {
return new Eio\Adapter();... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/Adapter.php | src/Eio/Adapter.php | <?php
namespace React\Filesystem\Eio;
use React\EventLoop\Loop;
use React\EventLoop\LoopInterface;
use React\Filesystem\AdapterInterface;
use React\Filesystem\ModeTypeDetector;
use React\Filesystem\Node;
use React\Filesystem\PollInterface;
use React\Filesystem\Stat;
use React\Promise\PromiseInterface;
final class Ad... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/EventStream.php | src/Eio/EventStream.php | <?php
namespace React\Filesystem\Eio;
/**
* Singleton to make sure we always only have one file descriptor for the ext-eio event stream.
* Creating more than one will invalidate the previous ones and make anything still using those fail.
*
* @internal
*/
final class EventStream
{
private static $fd = null;
... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/Poll.php | src/Eio/Poll.php | <?php
namespace React\Filesystem\Eio;
use React\EventLoop\LoopInterface;
use React\Filesystem\PollInterface;
final class Poll implements PollInterface
{
private LoopInterface $loop;
private $fd;
private \Closure $handleEvent;
private int $workInProgress = 0;
public function __construct(LoopInter... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/StatTrait.php | src/Eio/StatTrait.php | <?php
namespace React\Filesystem\Eio;
use React\Filesystem\Stat;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
trait StatTrait
{
protected function internalStat(string $path): PromiseInterface
{
return new Promise(function (callable $resolve, callable $reject) use ($path): void {
... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/NotExist.php | src/Eio/NotExist.php | <?php
namespace React\Filesystem\Eio;
use React\EventLoop\LoopInterface;
use React\Filesystem\AdapterInterface;
use React\Filesystem\Node;
use React\Filesystem\PollInterface;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use function React\Promise\resolve;
final class NotExist implements Node\NotExi... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/Directory.php | src/Eio/Directory.php | <?php
namespace React\Filesystem\Eio;
use React\Filesystem\AdapterInterface;
use React\Filesystem\Node;
use React\Filesystem\PollInterface;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use function React\Promise\all;
final class Directory implements Node\DirectoryInterface
{
use StatTrait;
... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Eio/File.php | src/Eio/File.php | <?php
namespace React\Filesystem\Eio;
use React\Filesystem\Node\FileInterface;
use React\Filesystem\PollInterface;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use function React\Promise\resolve;
final class File implements FileInterface
{
use StatTrait;
private PollInterface $poll;
pr... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Node/DirectoryInterface.php | src/Node/DirectoryInterface.php | <?php
namespace React\Filesystem\Node;
use React\Filesystem\AdapterInterface;
use React\Promise\PromiseInterface;
use Rx\Observable;
interface DirectoryInterface extends NodeInterface
{
/**
* @return PromiseInterface<array<NodeInterface>>
*/
public function ls(): PromiseInterface;
}
| php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Node/FileInterface.php | src/Node/FileInterface.php | <?php
namespace React\Filesystem\Node;
use React\Promise\PromiseInterface;
interface FileInterface extends NodeInterface
{
/**
* Open the file and read all its contents returning those through a promise.
*
* @return PromiseInterface<string>
*/
public function getContents(int $offset = 0 ,... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Node/NodeInterface.php | src/Node/NodeInterface.php | <?php
namespace React\Filesystem\Node;
use React\Filesystem\Stat;
use React\Promise\PromiseInterface;
interface NodeInterface
{
const DS = DIRECTORY_SEPARATOR;
/**
* Return the full path, for example: /path/to/
*
* @return string
*/
public function path();
/**
* Return the ... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Node/NotExistInterface.php | src/Node/NotExistInterface.php | <?php
namespace React\Filesystem\Node;
use React\Promise\PromiseInterface;
use Rx\Observable;
interface NotExistInterface extends NodeInterface
{
/**
* @return PromiseInterface<DirectoryInterface>
*/
public function createDirectory(): PromiseInterface;
/**
* @return PromiseInterface<FileI... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Fallback/Adapter.php | src/Fallback/Adapter.php | <?php
namespace React\Filesystem\Fallback;
use React\Filesystem\AdapterInterface;
use React\Filesystem\ModeTypeDetector;
use React\Filesystem\Stat;
use React\Promise\PromiseInterface;
use React\Filesystem\Node;
final class Adapter implements AdapterInterface
{
use StatTrait;
public function detect(string $p... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Fallback/StatTrait.php | src/Fallback/StatTrait.php | <?php
namespace React\Filesystem\Fallback;
use React\EventLoop\ExtUvLoop;
use React\Filesystem\Node\FileInterface;
use React\Filesystem\Stat;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use RuntimeException;
use React\EventLoop\LoopInterface;
use React\Filesystem\Node;
use UV;
use function React\Pr... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Fallback/NotExist.php | src/Fallback/NotExist.php | <?php
namespace React\Filesystem\Fallback;
use React\EventLoop\ExtUvLoop;
use React\EventLoop\LoopInterface;
use React\Filesystem\AdapterInterface;
use React\Filesystem\Node;
use React\Filesystem\PollInterface;
use React\Promise\CancellablePromiseInterface;
use React\Promise\Deferred;
use React\Promise\PromiseInterfa... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Fallback/Directory.php | src/Fallback/Directory.php | <?php
namespace React\Filesystem\Fallback;
use React\EventLoop\LoopInterface;
use React\Filesystem\AdapterInterface;
use React\Filesystem\Node;
use React\Promise\PromiseInterface;
use function React\Promise\all;
use function React\Promise\resolve;
use function WyriHaximus\React\FallbackPromiseClosure;
final class Di... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
reactphp/filesystem | https://github.com/reactphp/filesystem/blob/385933fdf47ad2db195c859523a8d854792dbad2/src/Fallback/File.php | src/Fallback/File.php | <?php
namespace React\Filesystem\Fallback;
use React\EventLoop\LoopInterface;
use React\Filesystem\Node\FileInterface;
use React\Promise\PromiseInterface;
use function React\Promise\resolve;
use function WyriHaximus\React\FallbackPromiseClosure;
final class File implements FileInterface
{
use StatTrait;
pri... | php | MIT | 385933fdf47ad2db195c859523a8d854792dbad2 | 2026-01-05T04:49:50.958304Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.