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
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Domain/ValueObjects/Gender.php
src/Shared/Domain/ValueObjects/Gender.php
<?php declare(strict_types=1); namespace App\Shared\Domain\ValueObjects; use App\Shared\Exceptions\InvalidGenderException; use JsonSerializable; final class Gender implements JsonSerializable { public const MALE = 'MALE'; public const FEMALE = 'FEMALE'; private string $gender; public function __co...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/PRedisClient.php
src/Shared/Infra/PRedisClient.php
<?php declare(strict_types=1); namespace App\Shared\Infra; use App\Shared\Adapters\Contracts\CacheSystem; use Predis\Client; final class PRedisClient implements CacheSystem { private Client $predisClient; private array $params; public function __construct(Client $predisClient, array $params) { ...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/GuzzleHttpClient.php
src/Shared/Infra/GuzzleHttpClient.php
<?php declare(strict_types=1); namespace App\Shared\Infra; use App\Shared\Adapters\Contracts\HttpClient; use GuzzleHttp\Client; use Psr\Http\Message\ResponseInterface as Response; final class GuzzleHttpClient implements HttpClient { private Client $httpClient; public function __construct() { $t...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/RespectValidation.php
src/Shared/Infra/RespectValidation.php
<?php declare(strict_types=1); namespace App\Shared\Infra; use App\Shared\Adapters\Contracts\ValidatorTool; use App\Shared\Exceptions\RuntimeException; use Respect\Validation\Validator; final class RespectValidation implements ValidatorTool { private array $mapRules = [ ValidatorTool::IS_NULL => 'nullTy...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/PokeAPI.php
src/Shared/Infra/PokeAPI.php
<?php declare(strict_types=1); namespace App\Shared\Infra; use App\Shared\Adapters\Contracts\HttpClient; use App\Shared\Adapters\Contracts\PokemonAPI; use GuzzleHttp\Exception\ClientException; final class PokeAPI implements PokemonAPI { private string $baseUrl; private HttpClient $httpClient; private ar...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/TwigEngine.php
src/Shared/Infra/TwigEngine.php
<?php declare(strict_types=1); namespace App\Shared\Infra; use App\Shared\Adapters\Contracts\Presentation\TemplatePresenter; use Twig\Environment as Twig; final class TwigEngine implements TemplatePresenter { private Twig $twig; private array $options; public function __construct(Twig $twig, array $opt...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Drivers/MySQLDriver.php
src/Shared/Infra/Drivers/MySQLDriver.php
<?php namespace App\Shared\Infra\Drivers; use App\Shared\Adapters\Contracts\QueryBuilder\QueryStatement; use PDO; use PDOStatement; use App\Shared\Adapters\Contracts\DatabaseDriver; class MySQLDriver implements DatabaseDriver { private ?PDO $pdo; private PDOStatement $statement; private ?QueryStatement $...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Drivers/PostgresDriver.php
src/Shared/Infra/Drivers/PostgresDriver.php
<?php namespace App\Shared\Infra\Drivers; use App\Shared\Adapters\Contracts\QueryBuilder\QueryStatement; use PDO; use PDOStatement; use App\Shared\Adapters\Contracts\DatabaseDriver; class PostgresDriver implements DatabaseDriver { private ?PDO $pdo; private PDOStatement $statement; private ?QueryStatemen...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Presentation/PresenterFactory.php
src/Shared/Infra/Presentation/PresenterFactory.php
<?php declare(strict_types=1); namespace App\Shared\Infra\Presentation; use App\Shared\Exceptions\RuntimeException; use App\Shared\Adapters\Contracts\Presentation\PayloadPresenter; use App\Shared\Infra\Presentation\Payload\CsvPresenter; use App\Shared\Infra\Presentation\Payload\JsonPresenter; use App\Shared\Infra\Pr...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Presentation/Payload/XmlPresenter.php
src/Shared/Infra/Presentation/Payload/XmlPresenter.php
<?php declare(strict_types=1); namespace App\Shared\Infra\Presentation\Payload; use App\Shared\Adapters\Contracts\Presentation\PayloadPresenter; final class XmlPresenter implements PayloadPresenter { public function output(array $data, array $options = []): string { $charset = $options['charset'] ??...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Presentation/Payload/JsonPresenter.php
src/Shared/Infra/Presentation/Payload/JsonPresenter.php
<?php declare(strict_types=1); namespace App\Shared\Infra\Presentation\Payload; use App\Shared\Adapters\Contracts\Presentation\PayloadPresenter; final class JsonPresenter implements PayloadPresenter { public function output(array $data, array $options = []): string { return json_encode($data); }...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Infra/Presentation/Payload/CsvPresenter.php
src/Shared/Infra/Presentation/Payload/CsvPresenter.php
<?php declare(strict_types=1); namespace App\Shared\Infra\Presentation\Payload; use App\Shared\Adapters\Contracts\Presentation\PayloadPresenter; final class CsvPresenter implements PayloadPresenter { public function output(array $data, array $options = []): string { $f = fopen('php://memory', 'r+');...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Http/PayloadAction.php
src/Shared/Adapters/Http/PayloadAction.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Http; use App\Shared\Exceptions\AppExceptionBase; use App\Shared\Exceptions\AppValidationException; use App\Shared\Adapters\Contracts\Presentation\PayloadPresenter; use App\Shared\Infra\Presentation\PresenterFactory; use PDOException; use Psr\Http\Message\...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Http/TemplateAction.php
src/Shared/Adapters/Http/TemplateAction.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Http; use App\Shared\Adapters\Contracts\Presentation\TemplatePresenter; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Throwable; abstract class TemplateAction { protected Request $reque...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/HttpClient.php
src/Shared/Adapters/Contracts/HttpClient.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts; use Psr\Http\Message\ResponseInterface as Response; interface HttpClient { public function get(string $uri, array $params = []): Response; public function post(string $uri, array $params = []): Response; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/ValidatorTool.php
src/Shared/Adapters/Contracts/ValidatorTool.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts; interface ValidatorTool { public const IS_NULL = 'is_null'; public const STR_LENGTH = 'str_length'; public const IS_INT = 'is_int'; public const IS_FLOAT = 'is_float'; public const DECIMAL = 'decimal'; /** * @param ...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/PokemonAPI.php
src/Shared/Adapters/Contracts/PokemonAPI.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts; interface PokemonAPI { public function getPokemonById(int $id): ?array; public function getPokemonByAlias(string $alias): ?array; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/CacheSystem.php
src/Shared/Adapters/Contracts/CacheSystem.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts; interface CacheSystem { public function hasKey(string $key): bool; public function getKey(string $key): ?string; public function setKey(string $key, string $value): void; public function getParams(): array; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/DatabaseDriver.php
src/Shared/Adapters/Contracts/DatabaseDriver.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts; use App\Shared\Adapters\Contracts\QueryBuilder\QueryStatement; interface DatabaseDriver { public function close(); public function setQueryStatement(QueryStatement $queryStatement): DatabaseDriver; public function execute(): Databas...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/QueryBuilder/QueryStatement.php
src/Shared/Adapters/Contracts/QueryBuilder/QueryStatement.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\QueryBuilder; interface QueryStatement { public function getValues(): array; public function __toString(): string; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/QueryBuilder/UpdateStatement.php
src/Shared/Adapters/Contracts/QueryBuilder/UpdateStatement.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\QueryBuilder; interface UpdateStatement extends QueryStatement { public function table(string $tableName): UpdateStatement; public function values(array $values): UpdateStatement; public function conditions(array $conditions): UpdateS...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/QueryBuilder/DeleteStatement.php
src/Shared/Adapters/Contracts/QueryBuilder/DeleteStatement.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\QueryBuilder; interface DeleteStatement extends QueryStatement { public function table(string $tableName): DeleteStatement; public function conditions(array $conditions): DeleteStatement; public function delete(); }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/QueryBuilder/SelectStatement.php
src/Shared/Adapters/Contracts/QueryBuilder/SelectStatement.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\QueryBuilder; interface SelectStatement extends QueryStatement { public function select(array $columns = []): SelectStatement; public function from(string $table): SelectStatement; public function where(string $field, $value, string $...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/QueryBuilder/InsertStatement.php
src/Shared/Adapters/Contracts/QueryBuilder/InsertStatement.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\QueryBuilder; interface InsertStatement extends QueryStatement { public function into(string $tableName): InsertStatement; public function values(array $values): InsertStatement; public function insert(): int; public function batc...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/Presentation/PayloadPresenter.php
src/Shared/Adapters/Contracts/Presentation/PayloadPresenter.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\Presentation; interface PayloadPresenter { public function output(array $data, array $options = []): string; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/Contracts/Presentation/TemplatePresenter.php
src/Shared/Adapters/Contracts/Presentation/TemplatePresenter.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\Contracts\Presentation; interface TemplatePresenter { public function render(string $templateName, array $data = []): string; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/MySQL/Insert.php
src/Shared/Adapters/QueryBuilder/MySQL/Insert.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\MySQL; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\InsertStatement; final class Insert implements InsertStatement { private string $tableName; private array $values; private Dat...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/MySQL/Update.php
src/Shared/Adapters/QueryBuilder/MySQL/Update.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\MySQL; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\UpdateStatement; final class Update implements UpdateStatement { private string $tableName; private array $values = []; privat...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/MySQL/Delete.php
src/Shared/Adapters/QueryBuilder/MySQL/Delete.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\MySQL; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\DeleteStatement; final class Delete implements DeleteStatement { private string $tableName; private array $conditions = []; pr...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/MySQL/Select.php
src/Shared/Adapters/QueryBuilder/MySQL/Select.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\MySQL; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\SelectStatement; use Exception; final class Select implements SelectStatement { private array $select; private string $from; p...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/Postgres/Insert.php
src/Shared/Adapters/QueryBuilder/Postgres/Insert.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\Postgres; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\InsertStatement; final class Insert implements InsertStatement { private string $tableName; private array $values; private ...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/Postgres/Update.php
src/Shared/Adapters/QueryBuilder/Postgres/Update.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\Postgres; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\UpdateStatement; final class Update implements UpdateStatement { private string $tableName; private array $values = []; pri...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/Postgres/Delete.php
src/Shared/Adapters/QueryBuilder/Postgres/Delete.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\Postgres; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\DeleteStatement; final class Delete implements DeleteStatement { private string $tableName; private array $conditions = []; ...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/src/Shared/Adapters/QueryBuilder/Postgres/Select.php
src/Shared/Adapters/QueryBuilder/Postgres/Select.php
<?php declare(strict_types=1); namespace App\Shared\Adapters\QueryBuilder\Postgres; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\Contracts\QueryBuilder\SelectStatement; use Exception; final class Select implements SelectStatement { private array $select; private string $from; ...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/tests/boostrap.php
tests/boostrap.php
<?php error_reporting(-1); DG\BypassFinals::enable(); $_SERVER['SCRIPT_NAME'] = '/' . __DIR__; $_SERVER['SCRIPT_FILENAME'] = __FILE__; // require composer autoloader if available $composerAutoload = __DIR__ . '/../vendor/autoload.php'; if (is_file($composerAutoload)) { require_once $composerAutoload; }
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/tests/Unit/Shared/Adapters/Gateways/QueryBuilder/MySQL/SelectTest.php
tests/Unit/Shared/Adapters/Gateways/QueryBuilder/MySQL/SelectTest.php
<?php declare(strict_types=1); namespace Tests\Unit\Shared\Adapters\Gateways\QueryBuilder\MySQL; use App\Shared\Adapters\Contracts\DatabaseDriver; use App\Shared\Adapters\QueryBuilder\MySQL\Select; use PHPUnit\Framework\TestCase; class SelectTest extends TestCase { private function makeQuery() { $co...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/public/index.php
public/index.php
<?php /** @var \DI\Container $container */ use Slim\Factory\AppFactory; require_once __DIR__ . '/../vendor/autoload.php'; /** * Load application environment from .env file */ $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../'); $dotenv->load(); defined('DS') or define('DS', DIRECTORY_SEPARATOR); defined('A...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/views/profile.blade.php
views/profile.blade.php
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Profile Page</title> </head> <body> <h1>[BLADE] T...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/config/errors.php
config/errors.php
<?php /** @var \Slim\App $app */ // Add Routing Middleware $app->addRoutingMiddleware(); // Add Error Middleware $errorMiddleware = $app->addErrorMiddleware(true, true, true); //$errorMiddleware->setDefaultErrorHandler(new ErrorHandlerMiddleware($app->getCallableResolver(), $app->getResponseFactory()));
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/config/di.php
config/di.php
<?php use App\Battle\UseCases\Contracts\BattleRepository as BattleRepositoryInterface; use App\Battle\Adapters\Repositories\BattleRepository; use App\Market\Adapters\Repository\ItemRepository; use App\Market\Adapters\Repository\MarketRepository; use App\Market\UseCases\Contracts\ItemRepository as ItemRepositoryInterfa...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/config/config.php
config/config.php
<?php return [ 'externalApi' => [ 'pokeapi' => [ 'baseUrl' => 'https://pokeapi.co/api/v2' ] ], 'templatePresentation' => [ 'viewsPath' => __DIR__ . '/../views', 'cachePath' => __DIR__ . '/../runtime/cache', 'enableCache' => $_ENV['APP_ENV'] === 'productio...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
dersonsena/clean-arch-pokemon
https://github.com/dersonsena/clean-arch-pokemon/blob/c187b9dafff57a34b2683634ae71b907859be0e0/config/routes.php
config/routes.php
<?php /** @var \Slim\App $app */ use App\Battle\Adapters\Http\StartAction; use App\Market\Adapters\Http\CreateItemAction; use App\Market\Adapters\Http\DeleteItemAction; use App\Market\Adapters\Http\GetItemAction; use App\Market\Adapters\Http\ItemsListAction; use App\Market\Adapters\Http\PurchaseAction; use App\Market...
php
MIT
c187b9dafff57a34b2683634ae71b907859be0e0
2026-01-05T02:15:07.389392Z
false
metowolf/NeteaseCloudMusicApi
https://github.com/metowolf/NeteaseCloudMusicApi/blob/1b92829b53bbefb30975d80b611960df11679daf/weapi/NeteaseMusicAPI_mini.php
weapi/NeteaseMusicAPI_mini.php
<?php /*! * Netease Cloud Music Api - mini * https://i-meto.com * Version 3.0.0 * * Copyright 2016, METO * Released under the MIT license */ class NeteaseMusicAPI{ // General protected $_MINI_MODE=false; protected $_MODULUS='00e0b509f6259df8642dbc35662901477df22677ec152b5ff68ace615bb7b725152b3ab...
php
MIT
1b92829b53bbefb30975d80b611960df11679daf
2026-01-05T02:15:47.600210Z
false
metowolf/NeteaseCloudMusicApi
https://github.com/metowolf/NeteaseCloudMusicApi/blob/1b92829b53bbefb30975d80b611960df11679daf/weapi/BigInteger.php
weapi/BigInteger.php
<?php /** * Pure-PHP arbitrary precision integer arithmetic library. * * Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or BCMath extensions, if available, * and an internal implementation, otherwise. * * PHP versions 4 and 5 * * {@internal (all DocBlock comments regarding implementatio...
php
MIT
1b92829b53bbefb30975d80b611960df11679daf
2026-01-05T02:15:47.600210Z
true
metowolf/NeteaseCloudMusicApi
https://github.com/metowolf/NeteaseCloudMusicApi/blob/1b92829b53bbefb30975d80b611960df11679daf/weapi/NeteaseMusicAPI.php
weapi/NeteaseMusicAPI.php
<?php /*! * Netease Cloud Music Api - mini * https://i-meto.com * Version 3.0.1 * * Copyright 2016, METO * Released under the MIT license */ // RSA Algorithm required require 'BigInteger.php'; class NeteaseMusicAPI{ // General protected $_MINI_MODE=false; protected $_MODULUS='00e0b509f6259df8642db...
php
MIT
1b92829b53bbefb30975d80b611960df11679daf
2026-01-05T02:15:47.600210Z
false
metowolf/NeteaseCloudMusicApi
https://github.com/metowolf/NeteaseCloudMusicApi/blob/1b92829b53bbefb30975d80b611960df11679daf/api/NeteaseMusicAPI.php
api/NeteaseMusicAPI.php
<?php /*! * Netease Cloud Music Api * https://i-meto.com * Version 1 stop support * * Copyright 2016, METO * Released under the MIT license */ class NeteaseMusicAPI{ // General protected $_USERAGENT='Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.157 Safar...
php
MIT
1b92829b53bbefb30975d80b611960df11679daf
2026-01-05T02:15:47.600210Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/create-phar.php
create-phar.php
<?php $pharFile = 'dephpugger.phar'; if (file_exists($pharFile)) { unlink($pharFile); } if (file_exists($pharFile . '.gz')) { unlink($pharFile . '.gz'); } $phar = new Phar($pharFile, 0, $pharFile); $phar->setSignatureAlgorithm(Phar::SHA1); $phar->buildFromDirectory('.', "/(bin|src|vendor).*(?:\.php|dephpugg...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command.php
src/Dephpug/Command.php
<?php namespace Dephpug; require_once __DIR__.'/Interfaces/iCommand.php'; require_once __DIR__.'/Interfaces/iCore.php'; use Dephpug\Interfaces\iCommand; use Dephpug\Interfaces\iCore; /** * Abstract class that inherit for all commands in Dephpugger * * Every command is a class that have Dephpug\Command as a inher...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/MessageParse.php
src/Dephpug/MessageParse.php
<?php namespace Dephpug; /** * Class to parse messages in DBGP protocol. */ class MessageParse { /** * Format to make message compatible with parse xml. * * When dephpugger receive the xml, there is any invalid chars * and start with code (three ints). This method remove this * to make ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/SplashScreen.php
src/Dephpug/SplashScreen.php
<?php namespace Dephpug; // Function to splash screen function splashScreen($word = 'Server') { $version = 'v' . \Dephpug\Dephpugger::$VERSION; return <<<EOL <info> _____ _ | __ \ | | | | | | ___ _ __ | |_...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Dephpugger.php
src/Dephpug/Dephpugger.php
<?php namespace Dephpug; use Symfony\Component\Console\Application; /** * Class indicates info about the project */ class Dephpugger { /** * The version of the Dephpugger */ public static $VERSION = '1.5.2'; protected $commands = [ \Dephpug\Console\CliCommand::class, \Dephpug...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Output.php
src/Dephpug/Output.php
<?php namespace Dephpug; use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Formatter\OutputFormatter; /** * Class to print using Symfony Console Color * * @example Output::print("<fg=red>Text to print in red</>") */ class Output { /** * Attribute with Symfony Output Conso...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Core.php
src/Dephpug/Core.php
<?php namespace Dephpug; use Dephpug\Dbgp\Client; /** * Class to run the Dephpugger with all flow */ class Core { /** * Set all attributes */ public function __construct() { $this->commandList = new CommandList($this); $this->parserList = new MessageParseList($this); $...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Readline.php
src/Dephpug/Readline.php
<?php namespace Dephpug; /** * Class to get the readline with history */ class Readline { /** * File configured in config file to save the history */ private static $historyFile; /** * Save the last command used */ private static $lastLine; /** * Load the history file ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/MessageEvent.php
src/Dephpug/MessageEvent.php
<?php namespace Dephpug; require_once __DIR__.'/Interfaces/iMessageEvent.php'; require_once __DIR__.'/Interfaces/iCore.php'; use Dephpug\Interfaces\iMessageEvent; use Dephpug\Interfaces\iCore; /** * Abstract class to all Message Event intercepting when DBGP send a XML * message to debug */ abstract class Message...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Config.php
src/Dephpug/Config.php
<?php namespace Dephpug; use Symfony\Component\Yaml\Yaml; use Symfony\Component\Yaml\Exception\ParseException; /** * Class to get the default config using file *.dephpugger.yml* */ class Config { /** * Default config that will be replaced by *.dephpugger.yml* file */ private $defaultConfig = [ ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/PluginReflection.php
src/Dephpug/PluginReflection.php
<?php namespace Dephpug; use ReflectionClass; /** * Class to get a list of classes that match an interface */ class PluginReflection { /** * Objects with interface setted in contructor */ private $plugins = []; /** * Interface to match classes */ public $interfaceReflection; ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/CommandList.php
src/Dephpug/CommandList.php
<?php namespace Dephpug; /** * Class with reflection to get all commands in Dephpugger project and * run methods following the level in each command */ class CommandList { /** * Reflection to get all commands */ public $reflection; /** * Pointer to core instance */ public $core...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/FilePrinter.php
src/Dephpug/FilePrinter.php
<?php namespace Dephpug; /** * Class that receive a filename and line to show part * of file in debugger with limits and format */ class FilePrinter { /** * Array with lines in a file */ public $file; /** * Filename of $file (optional) */ public $filename; /** * Curre...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/MessageParseList.php
src/Dephpug/MessageParseList.php
<?php namespace Dephpug; /** * Class with reflection to get all messages parse in project */ class MessageParseList { /** * Reflection to get all message parses */ public $reflection; /** * Pointer to core instance */ public $core; public function __construct(&$core) { ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Exporter.php
src/Dephpug/Exporter/Exporter.php
<?php namespace Dephpug\Exporter; class Exporter { private $xml; private $types = [ 'int' => Type\IntegerExporter::class, 'float' => Type\FloatExporter::class, 'null' => Type\NullExporter::class, 'bool' => Type\BoolExporter::class, 'string' => Type\StringExporter::clas...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/iExporter.php
src/Dephpug/Exporter/iExporter.php
<?php namespace Dephpug\Exporter; interface iExporter { public static function getType(); public function getExportedVar($xml); }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/NullExporter.php
src/Dephpug/Exporter/Type/NullExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class NullExporter implements iExporter { public static function getType() { return 'null'; } public function getExportedVar($xml) { return 'null'; } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/BoolExporter.php
src/Dephpug/Exporter/Type/BoolExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class BoolExporter implements iExporter { public static function getType() { return 'bool'; } public function getExportedVar($xml) { return (1 == $xml->property) ? 'true' : ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/ArrayExporter.php
src/Dephpug/Exporter/Type/ArrayExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; use Dephpug\Dbgp\Client; class ArrayExporter implements iExporter { public static function getType() { return 'array'; } public function getExportedVar($xml) { $command = "var_export({$xml->property->attribute...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/FloatExporter.php
src/Dephpug/Exporter/Type/FloatExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class FloatExporter implements iExporter { public static function getType() { return 'float'; } public function getExportedVar($xml) { return (string) $xml->property; } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/ResourceExporter.php
src/Dephpug/Exporter/Type/ResourceExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class ResourceExporter implements iExporter { public static function getType() { return 'resource'; } public function getExportedVar($xml) { return (string) '['.$xml->property.']'; } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/IntegerExporter.php
src/Dephpug/Exporter/Type/IntegerExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class IntegerExporter implements iExporter { public static function getType() { return 'int'; } public function getExportedVar($xml) { return (string) $xml->property; } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/ObjectExporter.php
src/Dephpug/Exporter/Type/ObjectExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; use Dephpug\Dbgp\Client; class ObjectExporter implements iExporter { public static function getType() { return 'object'; } public function getExportedVar($xml) { $command = "var_export({$xml->property->attribu...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/UnknownExporter.php
src/Dephpug/Exporter/Type/UnknownExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class UnknownExporter implements iExporter { public static function getType() { return 'unknown'; } public function getExportedVar($xml) { return (string) $xml->property; } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exporter/Type/StringExporter.php
src/Dephpug/Exporter/Type/StringExporter.php
<?php namespace Dephpug\Exporter\Type; use Dephpug\Exporter\iExporter; class StringExporter implements iExporter { public static function getType() { return 'string'; } public function getExportedVar($xml) { $content = base64_decode((string) $xml->property); return "{$co...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Interfaces/iMessageEvent.php
src/Dephpug/Interfaces/iMessageEvent.php
<?php namespace Dephpug\Interfaces; /** * Interface to all message parses */ interface iMessageEvent { /** * Method with the rule to match the xml */ public function match(string $xml); /** * Method of execution */ public function exec(); }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Interfaces/iCore.php
src/Dephpug/Interfaces/iCore.php
<?php namespace Dephpug\Interfaces; /** * Interface to get the core as a pointer */ interface iCore { /** * Set the current core as the same instance */ public function setCore(&$core); }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Interfaces/iCommand.php
src/Dephpug/Interfaces/iCommand.php
<?php namespace Dephpug\Interfaces; /** * Set methods for all commands */ interface iCommand { /** * Get the Command name */ public function getName(); /** * Get the alias of the command */ public function getAlias(); /** * Get a one line description of this command ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/FilePrinterMessageEvent.php
src/Dephpug/Parser/FilePrinterMessageEvent.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; use Dephpug\FilePrinter; use Dephpug\Output; /** * Event to get the filename and line number to print in the screen. * * @example <?xml version="1.0" encoding="iso-8859-1"?> * <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http:...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/PropertyGetMessageEvent.php
src/Dephpug/Parser/PropertyGetMessageEvent.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; use Dephpug\Exporter\Exporter; use Dephpug\Output; /** * Event to get a property calling the respective type * * @example <?xml version="1.0" encoding="iso-8859-1"?> * <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/VerboseModeMessageParse.php
src/Dephpug/Parser/VerboseModeMessageParse.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; use Dephpug\MessageParse as MessageParser; use Dephpug\Output; /** * Print all XML returned from DBGP protocol if the * config *verboseMode* is actived. */ class VerboseModeMessageParse extends MessageParse { /** * Ignore the xml a...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/ErrorMessageEvent.php
src/Dephpug/Parser/ErrorMessageEvent.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; use Dephpug\Output; /** * Event to get the error message if DBGP cannot run the previous command. * The behaviour is only print an error red message. * * @example <?xml version="1.0" encoding="iso-8859-1"?> * <response xmlns="urn:debugger...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/InitMessageEvent.php
src/Dephpug/Parser/InitMessageEvent.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; /** * Event to get the first message when the request (or cli executation) start. * * @example <?xml version="1.0" encoding="iso-8859-1"?> * <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Parser/CloseMessageEvent.php
src/Dephpug/Parser/CloseMessageEvent.php
<?php namespace Dephpug\Parser; use Dephpug\MessageEvent as MessageParse; /** * Event to get the close request in DBGP protocol. * To close the flow an exception is call. * * @example <?xml version="1.0" encoding="iso-8859-1"?> * <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xd...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/CliCommand.php
src/Dephpug/Console/CliCommand.php
<?php namespace Dephpug\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; use Dephpug\Config; use Dephpug\Dephpugger; class CliCommand extends Command { ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/DebuggerCommand.php
src/Dephpug/Console/DebuggerCommand.php
<?php namespace Dephpug\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Dephpug\Dephpugger; use Dephpug\Exception\ExitProgram; use Dephpug\Config; use function Dephpug\SplashScreen; class DebuggerCo...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/RequirementsCommand.php
src/Dephpug/Console/RequirementsCommand.php
<?php namespace Dephpug\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Dephpug\Dephpugger; class RequirementsCommand extends Command { private $output; protected function configure() { ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/ServerCommand.php
src/Dephpug/Console/ServerCommand.php
<?php namespace Dephpug\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Dephpug\Config; use Dephpug\Dephpugger; use function Dephpug\SplashScreen; class ServerCommand extends Command { protected...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/InfoCommand.php
src/Dephpug/Console/InfoCommand.php
<?php namespace Dephpug\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class InfoCommand extends Command { private $output; protected function configure() { $this // the...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/concerns/Printer.php
src/Dephpug/Console/concerns/Printer.php
<?php namespace Dephpug\Console\concerns; class Printer { public function requiredMessage($success, $message) { $emoji = $this->getEmoji($success); return " {$emoji} {$message}"; } public function getEmoji($success) { return ($success) ? '<fg=green;options=bo...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Console/concerns/PhpInfo.php
src/Dephpug/Console/concerns/PhpInfo.php
<?php namespace Dephpug\Console\concerns; class PhpInfo { public $info; public function getInfo() { if (null === $this->info) { ob_start(); phpinfo(); $this->info = ob_get_clean(); } return $this->info; } public function getVar($variab...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exception/ExitProgram.php
src/Dephpug/Exception/ExitProgram.php
<?php namespace Dephpug\Exception; class ExitProgram extends \Exception { private $statusMessage = [ 0 => 'Unexpected error', 99 => null, ]; public function __construct($message, $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); } ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exception/SocketException.php
src/Dephpug/Exception/SocketException.php
<?php namespace Dephpug\Exception; class SocketException extends \Exception { private $statusMessage = [ 0 => 'Unexpected error', 1 => 'Client socket error', 99 => null, ]; public function __construct($message, $code = 0, \Exception $previous = null) { parent::__constr...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Exception/QuitException.php
src/Dephpug/Exception/QuitException.php
<?php namespace Dephpug\Exception; class QuitException extends \Exception { public function __construct($message, $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); } }
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Dbgp/Client.php
src/Dephpug/Dbgp/Client.php
<?php namespace Dephpug\Dbgp; /** * Class to use Dbgp\Server with methods to convert in commands to dbgp. * * Class is a better interface to send commands to dbgp * protocol. You can use ->run instead of run -i 1, for example. * Obs: When you send a command, you need to get the result in * ->getResponse() metho...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Dbgp/Server.php
src/Dephpug/Dbgp/Server.php
<?php namespace Dephpug\Dbgp; use Dephpug\Output; use Dephpug\MessageParse; use Dephpug\Exception\ExitProgram; /** * Class to create a socket to remote debugger in xDebug. * * Class contains the logic to make a connection with xDebug * and create a client socket to receive a code and send to * DBGP protocol */...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/GetValueCommand.php
src/Dephpug/Command/GetValueCommand.php
<?php namespace Dephpug\Command; class GetValueCommand extends \Dephpug\Command { public function getName() { return 'GetValue'; } public function getShortDescription() { return 'Get variable value'; } public function getDescription() { return implode( ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/NextCommand.php
src/Dephpug/Command/NextCommand.php
<?php namespace Dephpug\Command; class NextCommand extends \Dephpug\Command { public function getName() { return 'Next'; } public function getShortDescription() { return 'Step over in breakpoint'; } public function getDescription() { return implode( ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/SetCommand.php
src/Dephpug/Command/SetCommand.php
<?php namespace Dephpug\Command; use Dephpug\Output; class SetCommand extends \Dephpug\Command { public function getName() { return 'Set'; } public function getShortDescription() { return 'Set new config value'; } public function getDescription() { return ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/HelpCommand.php
src/Dephpug/Command/HelpCommand.php
<?php namespace Dephpug\Command; use Dephpug\Output; class HelpCommand extends \Dephpug\Command { public function getName() { return 'Help'; } public function getShortDescription() { return 'You can run `help <commandName>` to show all explanation'; } public function get...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/StepIntoCommand.php
src/Dephpug/Command/StepIntoCommand.php
<?php namespace Dephpug\Command; class StepIntoCommand extends \Dephpug\Command { public function getName() { return 'Step'; } public function getShortDescription() { return 'Step into in breakpoint'; } public function getDescription() { return implode( ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/DbgpCommand.php
src/Dephpug/Command/DbgpCommand.php
<?php namespace Dephpug\Command; class DbgpCommand extends \Dephpug\Command { public function getName() { return 'Dbgp'; } public function getShortDescription() { return 'Run dbgp command'; } public function getDescription() { return implode( ' ', ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/ListCommand.php
src/Dephpug/Command/ListCommand.php
<?php namespace Dephpug\Command; use Dephpug\Output; class ListCommand extends \Dephpug\Command { public function getName() { return 'List'; } public function getShortDescription() { return 'List next file lines'; } public function getDescription() { return i...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false
renatocassino/dephpugger
https://github.com/renatocassino/dephpugger/blob/58cbd70b661a7f8d9cab2e507867230c51842c9d/src/Dephpug/Command/QuitCommand.php
src/Dephpug/Command/QuitCommand.php
<?php namespace Dephpug\Command; use Dephpug\Exception\ExitProgram; use Dephpug\Readline; class QuitCommand extends \Dephpug\Command { public $readline; public function __construct() { $this->readline = new Readline(); } public function getName() { return 'Quit'; } ...
php
MIT
58cbd70b661a7f8d9cab2e507867230c51842c9d
2026-01-05T02:15:37.369464Z
false