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
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status511.php
libs/Requests-2.0.4/src/Exception/Http/Status511.php
<?php /** * Exception for 511 Network Authentication Required responses * * @link https://tools.ietf.org/html/rfc6585 * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 511 Network Authentication Required responses * * @link ht...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status400.php
libs/Requests-2.0.4/src/Exception/Http/Status400.php
<?php /** * Exception for 400 Bad Request responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 400 Bad Request responses * * @package Requests\Exceptions */ final class Status400 extends Http { /** * HTTP status code ...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status405.php
libs/Requests-2.0.4/src/Exception/Http/Status405.php
<?php /** * Exception for 405 Method Not Allowed responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 405 Method Not Allowed responses * * @package Requests\Exceptions */ final class Status405 extends Http { /** * HTT...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status305.php
libs/Requests-2.0.4/src/Exception/Http/Status305.php
<?php /** * Exception for 305 Use Proxy responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 305 Use Proxy responses * * @package Requests\Exceptions */ final class Status305 extends Http { /** * HTTP status code * ...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/StatusUnknown.php
libs/Requests-2.0.4/src/Exception/Http/StatusUnknown.php
<?php /** * Exception for unknown status responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; use WpOrg\Requests\Response; /** * Exception for unknown status responses * * @package Requests\Exceptions */ final class StatusUnknown extends Ht...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status401.php
libs/Requests-2.0.4/src/Exception/Http/Status401.php
<?php /** * Exception for 401 Unauthorized responses * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 401 Unauthorized responses * * @package Requests\Exceptions */ final class Status401 extends Http { /** * HTTP status cod...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Http/Status431.php
libs/Requests-2.0.4/src/Exception/Http/Status431.php
<?php /** * Exception for 431 Request Header Fields Too Large responses * * @link https://tools.ietf.org/html/rfc6585 * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Http; use WpOrg\Requests\Exception\Http; /** * Exception for 431 Request Header Fields Too Large responses * * @link ht...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Exception/Transport/Curl.php
libs/Requests-2.0.4/src/Exception/Transport/Curl.php
<?php /** * CURL Transport Exception. * * @package Requests\Exceptions */ namespace WpOrg\Requests\Exception\Transport; use WpOrg\Requests\Exception\Transport; /** * CURL Transport Exception. * * @package Requests\Exceptions */ final class Curl extends Transport { const EASY = 'cURLEasy'; const MULTI = '...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Utility/InputValidator.php
libs/Requests-2.0.4/src/Utility/InputValidator.php
<?php /** * Input validation utilities. * * @package Requests\Utilities */ namespace WpOrg\Requests\Utility; use ArrayAccess; use CurlHandle; use Traversable; /** * Input validation utilities. * * @package Requests\Utilities */ final class InputValidator { /** * Verify that a received input parameter is ...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Utility/CaseInsensitiveDictionary.php
libs/Requests-2.0.4/src/Utility/CaseInsensitiveDictionary.php
<?php /** * Case-insensitive dictionary, suitable for HTTP headers * * @package Requests\Utilities */ namespace WpOrg\Requests\Utility; use ArrayAccess; use ArrayIterator; use IteratorAggregate; use ReturnTypeWillChange; use WpOrg\Requests\Exception; /** * Case-insensitive dictionary, suitable for HTTP headers ...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Utility/FilteredIterator.php
libs/Requests-2.0.4/src/Utility/FilteredIterator.php
<?php /** * Iterator for arrays requiring filtered values * * @package Requests\Utilities */ namespace WpOrg\Requests\Utility; use ArrayIterator; use ReturnTypeWillChange; use WpOrg\Requests\Exception\InvalidArgument; use WpOrg\Requests\Utility\InputValidator; /** * Iterator for arrays requiring filtered values...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Cookie/Jar.php
libs/Requests-2.0.4/src/Cookie/Jar.php
<?php /** * Cookie holder object * * @package Requests\Cookies */ namespace WpOrg\Requests\Cookie; use ArrayAccess; use ArrayIterator; use IteratorAggregate; use ReturnTypeWillChange; use WpOrg\Requests\Cookie; use WpOrg\Requests\Exception; use WpOrg\Requests\Exception\InvalidArgument; use WpOrg\Requests\HookMana...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/src/Proxy/Http.php
libs/Requests-2.0.4/src/Proxy/Http.php
<?php /** * HTTP Proxy connection interface * * @package Requests\Proxy * @since 1.6 */ namespace WpOrg\Requests\Proxy; use WpOrg\Requests\Exception\ArgumentCount; use WpOrg\Requests\Exception\InvalidArgument; use WpOrg\Requests\Hooks; use WpOrg\Requests\Proxy; /** * HTTP Proxy connection interface * * Pro...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/library/Requests.php
libs/Requests-2.0.4/library/Requests.php
<?php /** * Requests for PHP * * Inspired by Requests for Python. * * Based on concepts from SimplePie_File, RequestCore and WP_Http. * * @package Requests * * @deprecated 2.0.0 */ /* * Integrators who cannot yet upgrade to the PSR-4 class names can silence deprecations * by defining a `REQUESTS_SILENCE_PS...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
razorpay/razorpay-php
https://github.com/razorpay/razorpay-php/blob/98e7ff7b0f0649914fa806db51cc688387722838/libs/Requests-2.0.4/library/Deprecated.php
libs/Requests-2.0.4/library/Deprecated.php
<?php /** * Backwards compatibility layer for Requests. * * Allows for Composer to autoload the old PSR-0 classes via the custom autoloader. * This prevents issues with _extending final classes_ (which was the previous solution). * * Please see the Changelog for the 2.0.0 release for upgrade notes. * * @package...
php
MIT
98e7ff7b0f0649914fa806db51cc688387722838
2026-01-05T02:22:29.283190Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/workbench/app/BackupRestoreWorkbenchProvider.php
workbench/app/BackupRestoreWorkbenchProvider.php
<?php declare(strict_types=1); namespace Workbench\App; use Illuminate\Support\ServiceProvider; use ZipArchive; class BackupRestoreWorkbenchProvider extends ServiceProvider { public function boot() { // Setup default database to use sqlite :memory: $this->app['config']->set('database.default...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/LaravelBackupRestoreServiceProvider.php
src/LaravelBackupRestoreServiceProvider.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; use Wnx\LaravelBackupRestore\Commands\RestoreCommand; class LaravelBackupRestoreServiceProvider extends PackageServiceProvider { public function confi...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/DbImporterFactory.php
src/DbImporterFactory.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore; use Illuminate\Support\Str; use Wnx\LaravelBackupRestore\Databases\DbImporter; use Wnx\LaravelBackupRestore\Databases\MySql; use Wnx\LaravelBackupRestore\Databases\PostgreSql; use Wnx\LaravelBackupRestore\Databases\Sqlite; use Wnx\LaravelBackupRestor...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/PendingRestore.php
src/PendingRestore.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use SensitiveParameter; class PendingRestore { public function __construct( public readonly string $disk, public readonly stri...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/CliNotFound.php
src/Exceptions/CliNotFound.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; class CliNotFound extends Exception { public static function create(string $cli): self { return new static("CLI $cli not found. Please ensure $cli is in the PATH and available to your PHP process."); } }...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/CannotCreateDbImporter.php
src/Exceptions/CannotCreateDbImporter.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; class CannotCreateDbImporter extends Exception { public static function configNotFound(string $connectionName): self { return new static("Cannot find database connection `$connectionName` in config/database....
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/NoBackupsFound.php
src/Exceptions/NoBackupsFound.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; class NoBackupsFound extends Exception { public static function onDisk(string $disk): self { return new static("No backups found on disk $disk."); } }
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/DecompressionFailed.php
src/Exceptions/DecompressionFailed.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; use ZipArchive; class DecompressionFailed extends Exception { public static array $errorCodeToMessage = [ false => 'The file %filename% can\'t be opened.', ZipArchive::ER_EXISTS => 'The file %filename% a...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/NoDatabaseDumpsFound.php
src/Exceptions/NoDatabaseDumpsFound.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; use Wnx\LaravelBackupRestore\PendingRestore; class NoDatabaseDumpsFound extends Exception { public static function notFoundInBackup(PendingRestore $pendingRestore): self { $files = $pendingRestore->getAvail...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Exceptions/ImportFailed.php
src/Exceptions/ImportFailed.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Exceptions; use Exception; use Illuminate\Contracts\Process\ProcessResult; class ImportFailed extends Exception { public static function processDidNotEndSuccessfully(ProcessResult $process): static { $processOutput = static::formatPro...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/DecompressBackupAction.php
src/Actions/DecompressBackupAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Exceptions\DecompressionFailed; use Wnx\LaravelBackupRestore\PendingRestore; use ZipArchive; use function Laravel\Prompts\info; use function Laravel\Prompts\spin; class De...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/CheckDependenciesAction.php
src/Actions/CheckDependenciesAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\Process; use Wnx\LaravelBackupRestore\DbImporterFactory; use Wnx\LaravelBackupRestore\Exceptions\CannotCreateDbImporter; use Wnx\LaravelBackupRestore\Exceptions\CliNotFound; class CheckDependenciesAction { ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/ResetDatabaseAction.php
src/Actions/ResetDatabaseAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\DB; use Wnx\LaravelBackupRestore\Events\DatabaseReset; use Wnx\LaravelBackupRestore\PendingRestore; use function Laravel\Prompts\info; class ResetDatabaseAction { public function execute(PendingRestore $pe...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/ImportDumpAction.php
src/Actions/ImportDumpAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\DbImporterFactory; use Wnx\LaravelBackupRestore\Events\DatabaseRestored; use Wnx\LaravelBackupRestore\Exceptions\CannotCreateDbImporter; use Wnx\LaravelBackupRestore\Excepti...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/DownloadBackupAction.php
src/Actions/DownloadBackupAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\PendingRestore; use function Laravel\Prompts\info; use function Laravel\Prompts\spin; class DownloadBackupAction { public function execute(PendingRestore $pendingResto...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Actions/CleanupLocalBackupAction.php
src/Actions/CleanupLocalBackupAction.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Actions; use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Events\LocalBackupRemoved; use Wnx\LaravelBackupRestore\PendingRestore; class CleanupLocalBackupAction { public function execute(PendingRestore $pendingRestore): void ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Databases/MySql.php
src/Databases/MySql.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Databases; use Illuminate\Support\Facades\File; use Spatie\Backup\Exceptions\CannotCreateDbDumper; use Spatie\Backup\Tasks\Backup\DbDumperFactory; use Wnx\LaravelBackupRestore\Exceptions\ImportFailed; class MySql extends DbImporter { /** * @...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Databases/DbImporter.php
src/Databases/DbImporter.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Databases; use Illuminate\Contracts\Process\ProcessResult; use Illuminate\Support\Facades\Process; use Wnx\LaravelBackupRestore\Events\DatabaseDumpImportWasSuccessful; use Wnx\LaravelBackupRestore\Exceptions\ImportFailed; abstract class DbImporter { ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Databases/PostgreSql.php
src/Databases/PostgreSql.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Databases; use Illuminate\Support\Facades\File; use Spatie\Backup\Exceptions\CannotCreateDbDumper; use Spatie\Backup\Tasks\Backup\DbDumperFactory; use Wnx\LaravelBackupRestore\Exceptions\ImportFailed; class PostgreSql extends DbImporter { /** ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Databases/Sqlite.php
src/Databases/Sqlite.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Databases; use Illuminate\Support\Facades\File; use Wnx\LaravelBackupRestore\Exceptions\ImportFailed; class Sqlite extends DbImporter { /** * @throws ImportFailed */ public function getImportCommand(string $dumpFile, string $connect...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/HealthChecks/Result.php
src/HealthChecks/Result.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\HealthChecks; use Illuminate\Console\Command; class Result { public function __construct( public readonly HealthCheck $healthCheck, public int $status, public ?string $message, ) { // } public static f...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/HealthChecks/HealthCheck.php
src/HealthChecks/HealthCheck.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\HealthChecks; use Wnx\LaravelBackupRestore\PendingRestore; abstract class HealthCheck { abstract public function run(PendingRestore $pendingRestore): Result; public static function new(): self { return app(static::class); } }...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/HealthChecks/Checks/DatabaseHasTables.php
src/HealthChecks/Checks/DatabaseHasTables.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\HealthChecks\Checks; use Illuminate\Support\Facades\DB; use Wnx\LaravelBackupRestore\HealthChecks\HealthCheck; use Wnx\LaravelBackupRestore\HealthChecks\Result; use Wnx\LaravelBackupRestore\PendingRestore; class DatabaseHasTables extends HealthCheck ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Commands/RestoreCommand.php
src/Commands/RestoreCommand.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Commands; use Illuminate\Console\Command; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Laravel\Prompts\Prompt; use Spatie\Backup\Helpers\Format; use Wnx\LaravelB...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Events/DatabaseRestored.php
src/Events/DatabaseRestored.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Events; use Wnx\LaravelBackupRestore\PendingRestore; class DatabaseRestored { public function __construct(public readonly PendingRestore $pendingRestore) {} }
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Events/DatabaseReset.php
src/Events/DatabaseReset.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Events; use Wnx\LaravelBackupRestore\PendingRestore; class DatabaseReset { public function __construct(public readonly PendingRestore $pendingRestore) {} }
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Events/DatabaseDumpImportWasSuccessful.php
src/Events/DatabaseDumpImportWasSuccessful.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Events; class DatabaseDumpImportWasSuccessful { public function __construct(public readonly string $absolutePathToDump) {} }
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/src/Events/LocalBackupRemoved.php
src/Events/LocalBackupRemoved.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Events; use Wnx\LaravelBackupRestore\PendingRestore; class LocalBackupRemoved { public function __construct(public readonly PendingRestore $pendingRestore) {} }
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Pest.php
tests/Pest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Tests\TestCase; use function Pest\Laravel\artisan; uses(TestCase::class) ->beforeEach(function () { // Delete all files in the temp directory Storage::disk('local')->deleteDirectory('backup-restor...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/DbImporterFactoryTest.php
tests/DbImporterFactoryTest.php
<?php declare(strict_types=1); use Wnx\LaravelBackupRestore\Databases\DbImporter; use Wnx\LaravelBackupRestore\DbImporterFactory; use Wnx\LaravelBackupRestore\Exceptions\CannotCreateDbImporter; it('returns db importer instances for given database driver', function ($connectionName, $expected) { expect(DbImporter...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/TestCase.php
tests/TestCase.php
<?php declare(strict_types=1); namespace Wnx\LaravelBackupRestore\Tests; use Orchestra\Testbench\TestCase as Orchestra; use Wnx\LaravelBackupRestore\LaravelBackupRestoreServiceProvider; class TestCase extends Orchestra { protected function getPackageProviders($app) { return [ LaravelBack...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/DownloadBackupActionTest.php
tests/Actions/DownloadBackupActionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Actions\DownloadBackupAction; use Wnx\LaravelBackupRestore\PendingRestore; test('it downloads backup from remote disk and stores it in local storage', function () { Storage::fake('local'); $pendingRestore = P...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/CleanupLocalBackupActionTest.php
tests/Actions/CleanupLocalBackupActionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Actions\CleanupLocalBackupAction; use Wnx\LaravelBackupRestore\Actions\DecompressBackupAction; use Wnx\LaravelBackupRestore\Actions\DownloadBackupAction; use Wnx\LaravelBackupRestore\PendingRestore; it('removes downlo...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/ImportDumpActionTest.php
tests/Actions/ImportDumpActionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Event; use Wnx\LaravelBackupRestore\Actions\DecompressBackupAction; use Wnx\LaravelBackupRestore\Actions\DownloadBackupAction; use Wnx\LaravelBackupRestore\Actions\ImportDumpAction; use Wnx\LaravelBackupRestore\Events\DatabaseRestored; use Wnx\LaravelBacku...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/ResetDatabaseActionTest.php
tests/Actions/ResetDatabaseActionTest.php
<?php declare(strict_types=1); use Illuminate\Database\QueryException; use Illuminate\Support\Facades\DB; use Wnx\LaravelBackupRestore\Actions\DecompressBackupAction; use Wnx\LaravelBackupRestore\Actions\DownloadBackupAction; use Wnx\LaravelBackupRestore\Actions\ImportDumpAction; use Wnx\LaravelBackupRestore\Actions\...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/DecompressBackupActionTest.php
tests/Actions/DecompressBackupActionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Actions\DecompressBackupAction; use Wnx\LaravelBackupRestore\Actions\DownloadBackupAction; use Wnx\LaravelBackupRestore\Exceptions\DecompressionFailed; use Wnx\LaravelBackupRestore\PendingRestore; it('decompresses zip...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Actions/CheckDependenciesActionTest.php
tests/Actions/CheckDependenciesActionTest.php
<?php declare(strict_types=1); use Wnx\LaravelBackupRestore\Actions\CheckDependenciesAction; use Wnx\LaravelBackupRestore\Databases\DbImporter; use Wnx\LaravelBackupRestore\DbImporterFactory; use Wnx\LaravelBackupRestore\Exceptions\CliNotFound; it('does not throw exception for supported database drivers', function (...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Databases/SqliteTest.php
tests/Databases/SqliteTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Wnx\LaravelBackupRestore\Databases\Sqlite; use Wnx\LaravelBackupRestore\Events\DatabaseDumpImportWasSuccessful; use Wnx\LaravelBackupRestore\Exceptions\ImportFailed; it('imports sqlite dump', function (string ...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Databases/MySqlTest.php
tests/Databases/MySqlTest.php
<?php declare(strict_types=1); use Illuminate\Process\PendingProcess; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Process; use Wnx\LaravelBackupRestore\Databases\MySql; use Wnx\LaravelBackupRestore\Events\DatabaseDumpImportWasSuccessful; use Wnx\LaravelBacku...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Databases/PostgreSqlTest.php
tests/Databases/PostgreSqlTest.php
<?php declare(strict_types=1); use Illuminate\Process\PendingProcess; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Process; use Wnx\LaravelBackupRestore\Databases\PostgreSql; use Wnx\LaravelBackupRestore\Events\DatabaseDumpImportWasSuccessful; use Wnx\Laravel...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/HealthChecks/ResultTest.php
tests/HealthChecks/ResultTest.php
<?php declare(strict_types=1); use Illuminate\Console\Command; use Wnx\LaravelBackupRestore\HealthChecks\Checks\DatabaseHasTables; use Wnx\LaravelBackupRestore\HealthChecks\Result; it('returns ok result by default', function () { $check = new DatabaseHasTables; $result = Result::make($check); expect($re...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/HealthChecks/Checks/DatabaseHasTablesTest.php
tests/HealthChecks/Checks/DatabaseHasTablesTest.php
<?php declare(strict_types=1); use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Wnx\LaravelBackupRestore\HealthChecks\Checks\DatabaseHasTables; use Wnx\LaravelBackupRestore\PendingRestore; it('returns failed result if database for given connection is empty', function () { $pendingRestore =...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/tests/Commands/RestoreCommandTest.php
tests/Commands/RestoreCommandTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Storage; use Wnx\LaravelBackupRestore\Commands\RestoreCommand; use Wnx\LaravelBackupRestore\Events\DatabaseReset; use Wnx\LaravelBackupRestore\Events\LocalBackupRemoved; use Wnx\Larav...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
stefanzweifel/laravel-backup-restore
https://github.com/stefanzweifel/laravel-backup-restore/blob/4637b73ee83689e70f841c9afd73b7d852d09305/config/backup-restore.php
config/backup-restore.php
<?php declare(strict_types=1); return [ /** * Health checks are run after a given backup has been restored. * With health checks, you can make sure that the restored database contains the data you expect. * By default, we check if the restored database contains any tables. * * You can ad...
php
MIT
4637b73ee83689e70f841c9afd73b7d852d09305
2026-01-05T02:22:41.787092Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/castor.php
castor.php
<?php declare(strict_types=1); use Castor\Attribute\AsTask; use function Castor\context; use function Castor\http_download; use function Castor\io; use function Castor\PHPQa\php_cs_fixer; use function Castor\PHPQa\phpstan; use function Castor\run; #[AsTask('cs:check', namespace: 'qa', description: 'Check for coding...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/.php-cs-fixer.php
.php-cs-fixer.php
<?php $finder = (new PhpCsFixer\Finder()) ->in(__DIR__ . '/src') ->in(__DIR__ . '/tests') ->append([__DIR__ . '/castor.php']) ->exclude(['cache', 'Bundle/Resources/var', 'Bundle/Resources/config']) ; return (new PhpCsFixer\Config()) ->setRiskyAllowed(true) ->registerCustomFixers((new PhpCsFixe...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/bootstrap.php
bootstrap.php
<?php \Symfony\Bridge\PhpUnit\DeprecationErrorHandler::register("max[direct]=0&verbose=1");
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/bench/src/IsInitializedBench.php
bench/src/IsInitializedBench.php
<?php use PhpBench\Attributes\Groups; use PhpBench\Attributes\Iterations; use PhpBench\Attributes\Revs; #[Iterations(30)] class IsInitializedBench { private \ReflectionClass $reflectionClass; private \ReflectionProperty $fooProperty; public function __construct() { $this->reflectionClass = ne...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/bench/src/CreateObjectBench.php
bench/src/CreateObjectBench.php
<?php use PhpBench\Attributes\Groups; use PhpBench\Attributes\Iterations; use PhpBench\Attributes\Revs; #[Iterations(30)] class CreateObjectBench { private \ReflectionClass $reflectionClass; private \ReflectionProperty $fooProperty; private Dummy $dummy; public function __construct() { $t...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/MapperContext.php
src/MapperContext.php
<?php declare(strict_types=1); namespace AutoMapper; use AutoMapper\Exception\CircularReferenceException; use AutoMapper\Exception\InvalidArgumentException; /** * Context for mapping. * * Allows to customize how is done the mapping * * @author Joel Wurtz <jwurtz@jolicode.com> * * @phpstan-type CircularRefere...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/ConstructorStrategy.php
src/ConstructorStrategy.php
<?php declare(strict_types=1); namespace AutoMapper; /** * Determines how AutoMapper will handle the constructor of the target object. */ enum ConstructorStrategy: string { case ALWAYS = 'always'; case AUTO = 'auto'; case NEVER = 'never'; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/GeneratedMapper.php
src/GeneratedMapper.php
<?php declare(strict_types=1); namespace AutoMapper; use AutoMapper\Provider\ProviderRegistry; use AutoMapper\Symfony\ExpressionLanguageProvider; use AutoMapper\Transformer\PropertyTransformer\PropertyTransformerRegistry; /** * Class derived for each generated mapper. * * @author Joel Wurtz <jwurtz@jolicode.com>...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/MapperInterface.php
src/MapperInterface.php
<?php declare(strict_types=1); namespace AutoMapper; /** * Interface implemented by a single mapper. * * Each specific mapper should implements this interface * * @author Joel Wurtz <jwurtz@jolicode.com> * * @template Source of object|array<mixed> * @template Target of object|array<mixed> * * @phpstan-impo...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/AutoMapperRegistryInterface.php
src/AutoMapperRegistryInterface.php
<?php declare(strict_types=1); namespace AutoMapper; /** * Allows to retrieve a mapper. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ interface AutoMapperRegistryInterface { /** * @template Source of object * @template Target of object * * @param class-string<Source>|'ar...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Configuration.php
src/Configuration.php
<?php declare(strict_types=1); namespace AutoMapper; use AutoMapper\Loader\FileReloadStrategy; final readonly class Configuration { public function __construct( /** * Class prefix used to prefix the class name of the generated mappers. */ public string $classPrefix = 'Mapper_',...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/AutoMapper.php
src/AutoMapper.php
<?php declare(strict_types=1); namespace AutoMapper; use AutoMapper\Exception\InvalidMappingException; use AutoMapper\Generator\MapperGenerator; use AutoMapper\Generator\Shared\ClassDiscriminatorResolver; use AutoMapper\Loader\ClassLoaderInterface; use AutoMapper\Loader\EvalLoader; use AutoMapper\Loader\FileLoader; ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/php-parser.php
src/php-parser.php
<?php /** * This file provides compatibility functions for nikic/php-parser v4 & v5. */ declare(strict_types=1); namespace AutoMapper\PhpParser; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Scalar; /** * Constructs an integer number scalar node. * * @param int $value V...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/AutoMapperInterface.php
src/AutoMapperInterface.php
<?php declare(strict_types=1); namespace AutoMapper; /** * An auto mapper has the role of mapping a source to a target. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @phpstan-import-type MapperContextArray from MapperContext */ interface AutoMapperInterface { /** * @template Source of object *...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Event/GenerateMapperEvent.php
src/Event/GenerateMapperEvent.php
<?php declare(strict_types=1); namespace AutoMapper\Event; use AutoMapper\ConstructorStrategy; use AutoMapper\Metadata\MapperMetadata; /** * @internal */ final class GenerateMapperEvent { /** * @param PropertyMetadataEvent[] $properties A list of properties to add to this mapping */ public funct...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Event/TargetPropertyMetadata.php
src/Event/TargetPropertyMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Event; use AutoMapper\Extractor\ReadAccessor; use AutoMapper\Extractor\WriteMutator; use Symfony\Component\TypeInfo\Type; /** * Target Property metadata for event. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ final class TargetPropertyMetada...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Event/PropertyMetadataEvent.php
src/Event/PropertyMetadataEvent.php
<?php declare(strict_types=1); namespace AutoMapper\Event; use AutoMapper\Metadata\MapperMetadata; use AutoMapper\Transformer\TransformerInterface; /** * @internal */ final class PropertyMetadataEvent { /** * @param string[]|null $groups */ public function __construct( public readonly Ma...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Event/SourcePropertyMetadata.php
src/Event/SourcePropertyMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Event; use AutoMapper\Extractor\ReadAccessor; use Symfony\Component\TypeInfo\Type; /** * Source Property metadata for event. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ final class SourcePropertyMetadata { /** * @param string[]|nul...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/MetadataFactory.php
src/Metadata/MetadataFactory.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Configuration; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Event\SourcePropertyMetadata as SourcePropertyMetadataEvent; use AutoMapper\Event\TargetPropertyMetadata as TargetPropertyMe...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/Dependency.php
src/Metadata/Dependency.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Transformer\MapperDependency; /** * Represent a dependency on a mapper (allow to inject sub mappers). * * @internal * * @author Joel Wurtz <jwurtz@jolicode.com> */ final readonly class Dependency { public function __construct( ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/PropertyMetadata.php
src/Metadata/PropertyMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Transformer\TransformerInterface; /** * Source Property metadata. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ final class PropertyMetadata { /** * @param string[]|null $groups */ public function __...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/TargetPropertyMetadata.php
src/Metadata/TargetPropertyMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Event\TargetPropertyMetadata as EventTargetPropertyMetadata; use AutoMapper\Extractor\ReadAccessor; use AutoMapper\Extractor\WriteMutator; use Symfony\Component\TypeInfo\Type; /** * Target Property metadata. * * @author Joel Wurtz <jwur...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/GeneratorMetadata.php
src/Metadata/GeneratorMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\ConstructorStrategy; use AutoMapper\Generator\VariableRegistry; use AutoMapper\Transformer\PropertyTransformer\PropertyTransformerInterface; /** * @internal */ final class GeneratorMetadata { public readonly VariableRegistry $variabl...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/MetadataRegistry.php
src/Metadata/MetadataRegistry.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Configuration; /** * @internal * * @implements \IteratorAggregate<MapperMetadata> */ class MetadataRegistry implements \IteratorAggregate, \Countable { /** @var array<string, array<string, MapperMetadata>> */ private array $reg...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/MapperMetadata.php
src/Metadata/MapperMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use Composer\InstalledVersions; class MapperMetadata { /** @var class-string<object> */ public string $className; /** @var \ReflectionClass<object>|null */ public readonly ?\ReflectionClass $sourceReflectionClass; /** @var \Reflecti...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Metadata/SourcePropertyMetadata.php
src/Metadata/SourcePropertyMetadata.php
<?php declare(strict_types=1); namespace AutoMapper\Metadata; use AutoMapper\Event\SourcePropertyMetadata as SourcePropertyMetadataEvent; use AutoMapper\Extractor\ReadAccessor; use Symfony\Component\TypeInfo\Type; /** * Source Property metadata. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @experimental *...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/FromTargetMappingExtractor.php
src/Extractor/FromTargetMappingExtractor.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; /** * Mapping extracted only from target, useful when not having metadata on the source for dynamic data like array, \s...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/SourceTargetMappingExtractor.php
src/Extractor/SourceTargetMappingExtractor.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; /** * Extracts mapping between two objects, only gives properties that have the same name. * * @author Joel Wurtz <jw...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/FromSourceMappingExtractor.php
src/Extractor/FromSourceMappingExtractor.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; /** * Mapping extracted only from source, useful when not having metadata on the target for dynamic data like array, \s...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/MappingExtractor.php
src/Extractor/MappingExtractor.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Configuration; use AutoMapper\Event\PropertyMetadataEvent; use Symfony\Component\PropertyInfo\PropertyListExtractorInterface; use Symfony\Component\PropertyInfo\PropertyReadInfo; use Symfony\Component\PropertyInfo\PropertyReadInfoExtractor...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/MappingExtractorInterface.php
src/Extractor/MappingExtractorInterface.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; /** * Extracts mapping. * * @internal * * @author Joel Wurtz <jwurtz@jo...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/WriteMutator.php
src/Extractor/WriteMutator.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Exception\CompileException; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Param; use PhpParser\Node\Scalar; use PhpParser\Node\Stmt; /** * Writes mutator tell how to write to a property. * ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Extractor/ReadAccessor.php
src/Extractor/ReadAccessor.php
<?php declare(strict_types=1); namespace AutoMapper\Extractor; use AutoMapper\Exception\CompileException; use AutoMapper\Exception\InvalidArgumentException; use AutoMapper\MapperContext; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Param; use PhpParser\Node\Scalar; use...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/ChainTransformerFactoryAwareInterface.php
src/Transformer/ChainTransformerFactoryAwareInterface.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; /** * Allows to use a chain transformer factory. * * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ interface ChainTransformerFactoryAwareInterface { public function setChainTransformerFactory(ChainTransformerFactory $chainTransfor...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/ArrayTransformerFactory.php
src/Transformer/ArrayTransformerFactory.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Metadata\MapperMetadata; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; use Symfony\Component\TypeInfo\TypeIdentifier; /** * Create a decorated trans...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/ObjectTransformer.php
src/Transformer/ObjectTransformer.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Generator\UniqueVariableScope; use AutoMapper\MapperContext; use AutoMapper\Metadata\PropertyMetadata; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Scalar; use Symfony\Component\TypeInfo\Ty...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/StringToDateTimeTransformer.php
src/Transformer/StringToDateTimeTransformer.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Generator\UniqueVariableScope; use AutoMapper\MapperContext; use AutoMapper\Metadata\PropertyMetadata; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Scalar; /** * Transform a string to a \...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/MultipleTransformerFactory.php
src/Transformer/MultipleTransformerFactory.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Metadata\MapperMetadata; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type\UnionType; /** * @author Joel Wurtz <jwurtz@jolicode.com> * * @internal */ ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/MultipleTransformer.php
src/Transformer/MultipleTransformer.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Generator\UniqueVariableScope; use AutoMapper\Metadata\PropertyMetadata; use PhpParser\Node\Expr; use PhpParser\Node\Stmt; use Symfony\Component\TypeInfo\Type; /** * Multiple transformer decorator. * * Decorate transformers with cond...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/MapperDependency.php
src/Transformer/MapperDependency.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; /** * Represent a dependency on a mapper (allow to inject sub mappers). * * @internal * * @author Joel Wurtz <jwurtz@jolicode.com> */ final readonly class MapperDependency { /** * @param class-string<object>|'array' $source * @param...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Transformer/SymfonyUidTransformerFactory.php
src/Transformer/SymfonyUidTransformerFactory.php
<?php declare(strict_types=1); namespace AutoMapper\Transformer; use AutoMapper\Metadata\MapperMetadata; use AutoMapper\Metadata\SourcePropertyMetadata; use AutoMapper\Metadata\TargetPropertyMetadata; use Symfony\Component\TypeInfo\Type; use Symfony\Component\Uid\AbstractUid; use Symfony\Component\Uid\Ulid; /** * ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false