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 |
|---|---|---|---|---|---|---|---|---|
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpConnectionProviderTest.php | src/Ftp/FtpConnectionProviderTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\AdapterTestUtilities\RetryOnTestException;
use PHPUnit\Framework\TestCase;
use function ftp_close;
/**
* @group ftp
*/
class FtpConnectionProviderTest extends TestCase
{
use RetryOnTestException;
/**
* @var FtpConne... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpAdapterTestCase.php | src/Ftp/FtpAdapterTestCase.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use Generator;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\FileAttributes;
use League\Flysystem\StorageAttributes;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\Unab... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpdAdapterTest.php | src/Ftp/FtpdAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\FilesystemAdapter;
/**
* @group ftpd
*/
class FtpdAdapterTest extends FtpAdapterTestCase
{
protected static function createFilesystemAdapter(): FilesystemAdapter
{
$options = FtpConnectionOptions::fromArray([
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpAdapter.php | src/Ftp/FtpAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use DateTime;
use Generator;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
use League\Flysystem\StorageAttributes;
us... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToMakeConnectionPassive.php | src/Ftp/UnableToMakeConnectionPassive.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
class UnableToMakeConnectionPassive extends RuntimeException implements FtpConnectionException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpConnectionProvider.php | src/Ftp/FtpConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use const FTP_USEPASVADDRESS;
use function error_clear_last;
use function error_get_last;
class FtpConnectionProvider implements ConnectionProvider
{
/**
* @return resource
*
* @throws FtpConnectionException
*/
public functio... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpAdapterTest.php | src/Ftp/FtpAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\FilesystemAdapter;
use function mock_function;
use function reset_function_mocks;
/**
* @group ftp
*/
class FtpAdapterTest extends FtpAdapterTestCase
{
protected static function createFilesystemAdapter(): FilesystemAdapter
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpConnectionOptions.php | src/Ftp/FtpConnectionOptions.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use const FTP_BINARY;
class FtpConnectionOptions
{
public function __construct(
private string $host,
private string $root,
private string $username,
private string $password,
private int $port = 21,
p... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/FtpConnectionException.php | src/Ftp/FtpConnectionException.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\FilesystemException;
interface FtpConnectionException extends FilesystemException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AwsS3V3/VisibilityConverter.php | src/AwsS3V3/VisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AwsS3V3;
interface VisibilityConverter
{
public function visibilityToAcl(string $visibility): string;
public function aclToVisibility(array $grants): string;
public function defaultForDirectories(): string;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AwsS3V3/PortableVisibilityConverter.php | src/AwsS3V3/PortableVisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AwsS3V3;
use League\Flysystem\Visibility;
class PortableVisibilityConverter implements VisibilityConverter
{
private const PUBLIC_GRANTEE_URI = 'http://acs.amazonaws.com/groups/global/AllUsers';
private const PUBLIC_GRANTS_PERMISSION = 'READ';
pr... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AwsS3V3/AwsS3V3Adapter.php | src/AwsS3V3/AwsS3V3Adapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AwsS3V3;
use Aws\Api\DateTimeResult;
use Aws\S3\S3ClientInterface;
use DateTimeInterface;
use Generator;
use League\Flysystem\ChecksumAlgoIsNotSupported;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttribu... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AwsS3V3/AwsS3V3AdapterTest.php | src/AwsS3V3/AwsS3V3AdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AwsS3V3;
use Aws\Result;
use Aws\S3\S3Client;
use Aws\S3\S3ClientInterface;
use Exception;
use Generator;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\ChecksumAlgoIsNotSupported;
use League\Flysystem\Config;
use Le... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AwsS3V3/S3ClientStub.php | src/AwsS3V3/S3ClientStub.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AwsS3V3;
use Aws\Command;
use Aws\CommandInterface;
use Aws\ResultInterface;
use Aws\S3\Exception\S3Exception;
use Aws\S3\S3ClientInterface;
use Aws\S3\S3ClientTrait;
use GuzzleHttp\Psr7\Response;
use Throwable;
use function GuzzleHttp\Promise\promise_for;
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/UrlPrefixingClientStub.php | src/WebDAV/UrlPrefixingClientStub.php | <?php
declare(strict_types=1);
namespace League\Flysystem\WebDAV;
use Sabre\DAV\Client;
class UrlPrefixingClientStub extends Client
{
/**
* @param string $url
*/
public function propFind($url, array $properties, $depth = 0): array
{
$response = parent::propFind($url, $properties, $depth... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/WebDAVAdapter.php | src/WebDAV/WebDAVAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\WebDAV;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
use League\Flysystem\UnableToCheckDirectoryExistence;
use League\Fly... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/ByteMarkWebDAVServerTest.php | src/WebDAV/ByteMarkWebDAVServerTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\WebDAV;
use League\Flysystem\FilesystemAdapter;
class ByteMarkWebDAVServerTest extends WebDAVAdapterTestCase
{
protected static function createFilesystemAdapter(): FilesystemAdapter
{
if (($_ENV['TEST_WEBDAV'] ?? '') !== 'YES') {
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/WebDAVAdapterTestCase.php | src/WebDAV/WebDAVAdapterTestCase.php | <?php
declare(strict_types=1);
namespace League\Flysystem\WebDAV;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\UnableToMoveFile;
use League\Flysystem\UnableToSetVisibility;
use League\Flysystem\Visibility;
use Sabre\DAV\Client;
abstract class... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/SabreServerTest.php | src/WebDAV/SabreServerTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\WebDAV;
use League\Flysystem\FilesystemAdapter;
use Sabre\DAV\Client;
class SabreServerTest extends WebDAVAdapterTestCase
{
protected static function createFilesystemAdapter(): FilesystemAdapter
{
$client = new Client(['baseUri' => 'http://lo... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WebDAV/resources/server.php | src/WebDAV/resources/server.php | <?php
use Sabre\DAV\FS\Directory;
use Sabre\DAV\Server;
include __DIR__ . '/../../../vendor/autoload.php';
error_reporting(E_ALL ^ E_DEPRECATED);
$rootPath = __DIR__ . '/data';
if ( ! is_dir($rootPath)) {
mkdir($rootPath);
}
$rootDirectory = new Directory($rootPath);
$server = new Server($rootDirectory);
$ser... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/ShardedPrefixPublicUrlGenerator.php | src/UrlGeneration/ShardedPrefixPublicUrlGenerator.php | <?php
namespace League\Flysystem\UrlGeneration;
use InvalidArgumentException;
use League\Flysystem\Config;
use League\Flysystem\PathPrefixer;
use function array_map;
use function count;
use function crc32;
final class ShardedPrefixPublicUrlGenerator implements PublicUrlGenerator
{
/** @var PathPrefixer[] */
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/ChainedPublicUrlGeneratorTest.php | src/UrlGeneration/ChainedPublicUrlGeneratorTest.php | <?php
namespace League\Flysystem\UrlGeneration;
use League\Flysystem\Config;
use League\Flysystem\UnableToGeneratePublicUrl;
use PHPUnit\Framework\TestCase;
final class ChainedPublicUrlGeneratorTest extends TestCase
{
/**
* @test
*/
public function can_generate_url_for_supported_generator(): void
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/PrefixPublicUrlGenerator.php | src/UrlGeneration/PrefixPublicUrlGenerator.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UrlGeneration;
use League\Flysystem\Config;
use League\Flysystem\PathPrefixer;
class PrefixPublicUrlGenerator implements PublicUrlGenerator
{
private PathPrefixer $prefixer;
public function __construct(string $urlPrefix)
{
$this->prefixe... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/ChainedPublicUrlGenerator.php | src/UrlGeneration/ChainedPublicUrlGenerator.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UrlGeneration;
use League\Flysystem\Config;
use League\Flysystem\UnableToGeneratePublicUrl;
final class ChainedPublicUrlGenerator implements PublicUrlGenerator
{
/**
* @param PublicUrlGenerator[] $generators
*/
public function __construct(p... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/PublicUrlGenerator.php | src/UrlGeneration/PublicUrlGenerator.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UrlGeneration;
use League\Flysystem\Config;
use League\Flysystem\UnableToGeneratePublicUrl;
interface PublicUrlGenerator
{
/**
* @throws UnableToGeneratePublicUrl
*/
public function publicUrl(string $path, Config $config): string;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UrlGeneration/TemporaryUrlGenerator.php | src/UrlGeneration/TemporaryUrlGenerator.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UrlGeneration;
use DateTimeInterface;
use League\Flysystem\Config;
use League\Flysystem\UnableToGenerateTemporaryUrl;
interface TemporaryUrlGenerator
{
/**
* @throws UnableToGenerateTemporaryUrl
*/
public function temporaryUrl(string $path, ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GridFS/GridFSAdapterTest.php | src/GridFS/GridFSAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GridFS;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase as TestCase;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\U... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GridFS/GridFSAdapter.php | src/GridFS/GridFSAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GridFS;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableTo... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Local/LocalFilesystemAdapterTest.php | src/Local/LocalFilesystemAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Local;
use const LOCK_EX;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\Filesystem;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\StorageAttributes;
use League\Flysystem\S... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Local/FallbackMimeTypeDetector.php | src/Local/FallbackMimeTypeDetector.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Local;
use League\MimeTypeDetection\MimeTypeDetector;
use function in_array;
class FallbackMimeTypeDetector implements MimeTypeDetector
{
private const INCONCLUSIVE_MIME_TYPES = [
'application/x-empty',
'text/plain',
'text/x-asm',... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Local/LocalFilesystemAdapter.php | src/Local/LocalFilesystemAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Local;
use const DIRECTORY_SEPARATOR;
use const LOCK_EX;
use DirectoryIterator;
use FilesystemIterator;
use Generator;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttri... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AdapterTestUtilities/RetryOnTestException.php | src/AdapterTestUtilities/RetryOnTestException.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AdapterTestUtilities;
use const PHP_EOL;
use const STDOUT;
use League\Flysystem\FilesystemException;
use Throwable;
/**
* @codeCoverageIgnore
*/
trait RetryOnTestException
{
/**
* @var string
*/
protected $exceptionTypeToRetryOn;
/**... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php | src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AdapterTestUtilities;
use League\Flysystem\Config;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\FilesystemOperationFailed;
class ExceptionThrowingFilesystemAdapter implements FilesystemAdapter
{
/**
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AdapterTestUtilities/FilesystemAdapterTestCase.php | src/AdapterTestUtilities/FilesystemAdapterTestCase.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AdapterTestUtilities;
use const PHP_EOL;
use DateInterval;
use DateTimeImmutable;
use Generator;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flys... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AdapterTestUtilities/test-functions.php | src/AdapterTestUtilities/test-functions.php | <?php
declare(strict_types=1);
function return_mocked_value(string $name)
{
return array_shift($_ENV['__FM:RETURNS:' . $name]);
}
function reset_function_mocks()
{
foreach (array_keys($_ENV) as $name) {
if (is_string($name) && substr($name, 0, 5) === '__FM:') {
unset($_ENV[$name]);
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AdapterTestUtilities/ToxiproxyManagement.php | src/AdapterTestUtilities/ToxiproxyManagement.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AdapterTestUtilities;
use GuzzleHttp\Client;
/**
* This class provides a client for the HTTP API provided by the proxy that simulates network issues.
*
* @see https://github.com/shopify/toxiproxy#http-api
*
* @phpstan-type RegisteredProxies 'ftp'|'sftp'... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/UnableToCreateParentDirectory.php | src/ZipArchive/UnableToCreateParentDirectory.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use RuntimeException;
class UnableToCreateParentDirectory extends RuntimeException implements ZipArchiveException
{
public static function atLocation(string $location, string $reason = ''): UnableToCreateParentDirectory
{
return n... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/StubZipArchiveProvider.php | src/ZipArchive/StubZipArchiveProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use ZipArchive;
class StubZipArchiveProvider implements ZipArchiveProvider
{
private FilesystemZipArchiveProvider $provider;
/**
* @var StubZipArchive
*/
private $archive;
public function __construct(private string $fi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/FilesystemZipArchiveProvider.php | src/ZipArchive/FilesystemZipArchiveProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use ZipArchive;
class FilesystemZipArchiveProvider implements ZipArchiveProvider
{
/**
* @var bool
*/
private $parentDirectoryCreated = false;
public function __construct(private string $filename, private int $localDirector... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/PrefixedRootZipArchiveAdapterTest.php | src/ZipArchive/PrefixedRootZipArchiveAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
/**
* @group zip
*/
final class PrefixedRootZipArchiveAdapterTest extends ZipArchiveAdapterTestCase
{
protected static function getRoot(): string
{
return '/prefixed-path';
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/ZipArchiveProvider.php | src/ZipArchive/ZipArchiveProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use ZipArchive;
interface ZipArchiveProvider
{
public function createZipArchive(): ZipArchive;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/NoRootPrefixZipArchiveAdapterTest.php | src/ZipArchive/NoRootPrefixZipArchiveAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
/**
* @group zip
*/
final class NoRootPrefixZipArchiveAdapterTest extends ZipArchiveAdapterTestCase
{
protected static function getRoot(): string
{
return '/';
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/StubZipArchive.php | src/ZipArchive/StubZipArchive.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use ZipArchive;
class StubZipArchive extends ZipArchive
{
private bool $failNextDirectoryCreation = false;
private bool $failNextWrite = false;
private bool $failNextDeleteName = false;
private bool $failWhenSettingVisibility = fa... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/ZipArchiveAdapterTestCase.php | src/ZipArchive/ZipArchiveAdapterTestCase.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use Generator;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableToCreateDirectory;
use Leagu... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/UnableToOpenZipArchive.php | src/ZipArchive/UnableToOpenZipArchive.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use RuntimeException;
final class UnableToOpenZipArchive extends RuntimeException implements ZipArchiveException
{
public static function atLocation(string $location, string $reason = ''): self
{
return new self(rtrim(sprintf(
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/ZipArchiveAdapter.php | src/ZipArchive/ZipArchiveAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use Generator;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
use League\Flysystem\UnableToCopyFile;
use League... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ZipArchive/ZipArchiveException.php | src/ZipArchive/ZipArchiveException.php | <?php
declare(strict_types=1);
namespace League\Flysystem\ZipArchive;
use League\Flysystem\FilesystemException;
interface ZipArchiveException extends FilesystemException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathPrefixing/PathPrefixedAdapter.php | src/PathPrefixing/PathPrefixedAdapter.php | <?php
namespace League\Flysystem\PathPrefixing;
use DateTimeInterface;
use Generator;
use League\Flysystem\CalculateChecksumFromStream;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
us... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathPrefixing/PathPrefixedAdapterTest.php | src/PathPrefixing/PathPrefixedAdapterTest.php | <?php
namespace League\Flysystem\PathPrefixing;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\InMemory\InMemoryFilesystemAdapter;
use League\Flysystem\UnableToGeneratePublicUrl;
use League\Flysystem\UrlGeneration\PublicUrlGenerator;
use League\Flysystem\Visibility;
use PHPUn... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AzureBlobStorage/AzureBlobStorageAdapterTest.php | src/AzureBlobStorage/AzureBlobStorageAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AzureBlobStorage;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase as TestCase;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\UnableToSetVisibility;
use League\Flysystem\Visibility;
use MicrosoftA... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AzureBlobStorage/AzureBlobStorageAdapter.php | src/AzureBlobStorage/AzureBlobStorageAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AzureBlobStorage;
use DateTime;
use DateTimeInterface;
use League\Flysystem\ChecksumAlgoIsNotSupported;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use Leag... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/UnableToEstablishAuthenticityOfHost.php | src/PhpseclibV3/UnableToEstablishAuthenticityOfHost.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\FilesystemException;
use RuntimeException;
class UnableToEstablishAuthenticityOfHost extends RuntimeException implements FilesystemException
{
public static function becauseTheAuthenticityCantBeEstablished(string $host):... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SftpStub.php | src/PhpseclibV3/SftpStub.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
/**
* @internal This is only used for testing purposes.
*/
class SftpStub extends SFTP
{
/**
* @var array<string,bool>
*/
private array $tripWires = [];
public function failOnChmod(string $filena... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/UnableToConnectToSftpHost.php | src/PhpseclibV3/UnableToConnectToSftpHost.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\FilesystemException;
use RuntimeException;
use Throwable;
class UnableToConnectToSftpHost extends RuntimeException implements FilesystemException
{
public static function atHostname(string $host, ?Throwable $previous = n... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SftpAdapter.php | src/PhpseclibV3/SftpAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\FilesystemException;
use League\Flysystem\PathPrefixer;
use League\Flysystem\... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/ConnectionProvider.php | src/PhpseclibV3/ConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
/**
* @method void disconnect()
*/
interface ConnectionProvider
{
public function provideConnection(): SFTP;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SftpConnectionProviderTest.php | src/PhpseclibV3/SftpConnectionProviderTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
use PHPUnit\Framework\TestCase;
use Throwable;
use function base64_decode;
use function class_exists;
use function explode;
use function getenv;
use function hash;
use function implode;
use function is_a;
use function sl... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/UnableToLoadPrivateKey.php | src/PhpseclibV3/UnableToLoadPrivateKey.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\FilesystemException;
use RuntimeException;
use Throwable;
class UnableToLoadPrivateKey extends RuntimeException implements FilesystemException
{
public function __construct(?string $message = 'Unable to load private key.... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SftpConnectionProvider.php | src/PhpseclibV3/SftpConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\FilesystemException;
use phpseclib3\Crypt\Common\AsymmetricKey;
use phpseclib3\Crypt\PublicKeyLoader;
use phpseclib3\Exception\NoKeyLoadedException;
use phpseclib3\Net\SFTP;
use phpseclib3\System\SSH\Agent;
use Throwable;
us... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/FixatedConnectivityChecker.php | src/PhpseclibV3/FixatedConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
class FixatedConnectivityChecker implements ConnectivityChecker
{
/**
* @var int
*/
private $succeedAfter;
/**
* @var int
*/
private $numberOfTimesChecked = 0;
public function __... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/ConnectivityChecker.php | src/PhpseclibV3/ConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
interface ConnectivityChecker
{
public function isConnected(SFTP $connection): bool;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/UnableToAuthenticate.php | src/PhpseclibV3/UnableToAuthenticate.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\FilesystemException;
use RuntimeException;
class UnableToAuthenticate extends RuntimeException implements FilesystemException
{
private ?string $connectionError;
public function __construct(string $message, ?string ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/StubSftpConnectionProvider.php | src/PhpseclibV3/StubSftpConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
class StubSftpConnectionProvider implements ConnectionProvider
{
/**
* @var SftpStub|null
*/
public $connection;
public function __construct(
private string $host,
private string $u... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SftpAdapterTest.php | src/PhpseclibV3/SftpAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableToCreateDirectory;
use League\Flysystem\Un... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV3/SimpleConnectivityChecker.php | src/PhpseclibV3/SimpleConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV3;
use phpseclib3\Net\SFTP;
use Throwable;
class SimpleConnectivityChecker implements ConnectivityChecker
{
public function __construct(
private bool $usePing = false,
) {
}
public static function create(): SimpleConnectivi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/bin/tools.php | bin/tools.php | <?php
include_once __DIR__ . '/../vendor/autoload.php';
function write_line(string $line)
{
fwrite(STDOUT, "{$line}\n");
}
function panic(string $reason)
{
write_line('🚨 ' . $reason);
exit(1);
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/bin/update-subsplit-closers.php | bin/update-subsplit-closers.php | <?php
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;
include __DIR__ . '/../vendor/autoload.php';
$filesystem = new Filesystem(new LocalFilesystemAdapter(realpath(__DIR__ . '/../')));
$subsplits = json_decode($filesystem->read('config.subsplit-publish.json'), true);
$workflowCont... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/bin/check-versions.php | bin/check-versions.php | <?php
declare(strict_types=1);
/**
* This script check for composer dependency incompatibilities:.
*
* - All required dependencies of the extracted packages MUST be
* present in the main composer.json's require(-dev) section.
* - Dependency constraints of extracted packages may not exclude
* the constra... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/bin/set-flysystem-version.php | bin/set-flysystem-version.php | <?php
use League\Flysystem\FileAttributes;
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;
use League\Flysystem\StorageAttributes;
include_once __DIR__ . '/tools.php';
if ( ! isset($argv[1])) {
panic('No base version provided');
}
$mainVersion = $argv[1];
write_line("☝️ Sett... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Dotenv.php | src/Dotenv.php | <?php
declare(strict_types=1);
namespace Dotenv;
use Dotenv\Exception\InvalidPathException;
use Dotenv\Loader\Loader;
use Dotenv\Loader\LoaderInterface;
use Dotenv\Parser\Parser;
use Dotenv\Parser\ParserInterface;
use Dotenv\Repository\Adapter\ArrayAdapter;
use Dotenv\Repository\Adapter\PutenvAdapter;
use Dotenv\Rep... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Validator.php | src/Validator.php | <?php
declare(strict_types=1);
namespace Dotenv;
use Dotenv\Exception\ValidationException;
use Dotenv\Repository\RepositoryInterface;
use Dotenv\Util\Regex;
use Dotenv\Util\Str;
class Validator
{
/**
* The environment repository instance.
*
* @var \Dotenv\Repository\RepositoryInterface
*/
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/Value.php | src/Parser/Value.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
use Dotenv\Util\Str;
final class Value
{
/**
* The string representation of the parsed value.
*
* @var string
*/
private $chars;
/**
* The locations of the variables in the value.
*
* @var int[]
*/
priva... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/Lexer.php | src/Parser/Lexer.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
final class Lexer
{
/**
* The regex for each type of token.
*/
private const PATTERNS = [
'[\r\n]{1,1000}', '[^\S\r\n]{1,1000}', '\\\\', '\'', '"', '\\#', '\\$', '([^(\s\\\\\'"\\#\\$)]|\\(|\\)){1,1000}',
];
/**
* This cla... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/Parser.php | src/Parser/Parser.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
use Dotenv\Exception\InvalidFileException;
use Dotenv\Util\Regex;
use GrahamCampbell\ResultType\Result;
use GrahamCampbell\ResultType\Success;
final class Parser implements ParserInterface
{
/**
* Parse content into an entry array.
*
* @para... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/Lines.php | src/Parser/Lines.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
use Dotenv\Util\Regex;
use Dotenv\Util\Str;
final class Lines
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
*/
private function __construct()
{
//
}
/**
* Process the... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/ParserInterface.php | src/Parser/ParserInterface.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
interface ParserInterface
{
/**
* Parse content into an entry array.
*
* @param string $content
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return \Dotenv\Parser\Entry[]
*/
public function parse(string... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/Entry.php | src/Parser/Entry.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
use PhpOption\Option;
final class Entry
{
/**
* The entry name.
*
* @var string
*/
private $name;
/**
* The entry value.
*
* @var \Dotenv\Parser\Value|null
*/
private $value;
/**
* Create a new... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Parser/EntryParser.php | src/Parser/EntryParser.php | <?php
declare(strict_types=1);
namespace Dotenv\Parser;
use Dotenv\Util\Regex;
use Dotenv\Util\Str;
use GrahamCampbell\ResultType\Error;
use GrahamCampbell\ResultType\Result;
use GrahamCampbell\ResultType\Success;
final class EntryParser
{
private const INITIAL_STATE = 0;
private const UNQUOTED_STATE = 1;
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Util/Regex.php | src/Util/Regex.php | <?php
declare(strict_types=1);
namespace Dotenv\Util;
use GrahamCampbell\ResultType\Error;
use GrahamCampbell\ResultType\Success;
/**
* @internal
*/
final class Regex
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
*/
private function __construct()... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Util/Str.php | src/Util/Str.php | <?php
declare(strict_types=1);
namespace Dotenv\Util;
use GrahamCampbell\ResultType\Error;
use GrahamCampbell\ResultType\Success;
use PhpOption\Option;
/**
* @internal
*/
final class Str
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
*/
private fu... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Exception/InvalidEncodingException.php | src/Exception/InvalidEncodingException.php | <?php
declare(strict_types=1);
namespace Dotenv\Exception;
use InvalidArgumentException;
final class InvalidEncodingException extends InvalidArgumentException implements ExceptionInterface
{
//
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Exception/ExceptionInterface.php | src/Exception/ExceptionInterface.php | <?php
declare(strict_types=1);
namespace Dotenv\Exception;
use Throwable;
interface ExceptionInterface extends Throwable
{
//
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Exception/InvalidFileException.php | src/Exception/InvalidFileException.php | <?php
declare(strict_types=1);
namespace Dotenv\Exception;
use InvalidArgumentException;
final class InvalidFileException extends InvalidArgumentException implements ExceptionInterface
{
//
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Exception/ValidationException.php | src/Exception/ValidationException.php | <?php
declare(strict_types=1);
namespace Dotenv\Exception;
use RuntimeException;
final class ValidationException extends RuntimeException implements ExceptionInterface
{
//
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Exception/InvalidPathException.php | src/Exception/InvalidPathException.php | <?php
declare(strict_types=1);
namespace Dotenv\Exception;
use InvalidArgumentException;
final class InvalidPathException extends InvalidArgumentException implements ExceptionInterface
{
//
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Loader/Loader.php | src/Loader/Loader.php | <?php
declare(strict_types=1);
namespace Dotenv\Loader;
use Dotenv\Parser\Entry;
use Dotenv\Parser\Value;
use Dotenv\Repository\RepositoryInterface;
final class Loader implements LoaderInterface
{
/**
* Load the given entries into the repository.
*
* We'll substitute any nested variables, and sen... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Loader/Resolver.php | src/Loader/Resolver.php | <?php
declare(strict_types=1);
namespace Dotenv\Loader;
use Dotenv\Parser\Value;
use Dotenv\Repository\RepositoryInterface;
use Dotenv\Util\Regex;
use Dotenv\Util\Str;
use PhpOption\Option;
final class Resolver
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Loader/LoaderInterface.php | src/Loader/LoaderInterface.php | <?php
declare(strict_types=1);
namespace Dotenv\Loader;
use Dotenv\Repository\RepositoryInterface;
interface LoaderInterface
{
/**
* Load the given entries into the repository.
*
* @param \Dotenv\Repository\RepositoryInterface $repository
* @param \Dotenv\Parser\Entry[] $entr... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/StoreBuilder.php | src/Store/StoreBuilder.php | <?php
declare(strict_types=1);
namespace Dotenv\Store;
use Dotenv\Store\File\Paths;
final class StoreBuilder
{
/**
* The of default name.
*/
private const DEFAULT_NAME = '.env';
/**
* The paths to search within.
*
* @var string[]
*/
private $paths;
/**
* The ... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/StoreInterface.php | src/Store/StoreInterface.php | <?php
declare(strict_types=1);
namespace Dotenv\Store;
interface StoreInterface
{
/**
* Read the content of the environment file(s).
*
* @throws \Dotenv\Exception\InvalidEncodingException|\Dotenv\Exception\InvalidPathException
*
* @return string
*/
public function read();
}
| php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/FileStore.php | src/Store/FileStore.php | <?php
declare(strict_types=1);
namespace Dotenv\Store;
use Dotenv\Exception\InvalidPathException;
use Dotenv\Store\File\Reader;
final class FileStore implements StoreInterface
{
/**
* The file paths.
*
* @var string[]
*/
private $filePaths;
/**
* Should file loading short circu... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/StringStore.php | src/Store/StringStore.php | <?php
declare(strict_types=1);
namespace Dotenv\Store;
final class StringStore implements StoreInterface
{
/**
* The file content.
*
* @var string
*/
private $content;
/**
* Create a new string store instance.
*
* @param string $content
*
* @return void
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/File/Reader.php | src/Store/File/Reader.php | <?php
declare(strict_types=1);
namespace Dotenv\Store\File;
use Dotenv\Exception\InvalidEncodingException;
use Dotenv\Util\Str;
use PhpOption\Option;
/**
* @internal
*/
final class Reader
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
*/
private f... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Store/File/Paths.php | src/Store/File/Paths.php | <?php
declare(strict_types=1);
namespace Dotenv\Store\File;
/**
* @internal
*/
final class Paths
{
/**
* This class is a singleton.
*
* @codeCoverageIgnore
*
* @return void
*/
private function __construct()
{
//
}
/**
* Returns the full paths to the f... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/RepositoryBuilder.php | src/Repository/RepositoryBuilder.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository;
use Dotenv\Repository\Adapter\AdapterInterface;
use Dotenv\Repository\Adapter\EnvConstAdapter;
use Dotenv\Repository\Adapter\GuardedWriter;
use Dotenv\Repository\Adapter\ImmutableWriter;
use Dotenv\Repository\Adapter\MultiReader;
use Dotenv\Repository\Adapt... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/RepositoryInterface.php | src/Repository/RepositoryInterface.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository;
interface RepositoryInterface
{
/**
* Determine if the given environment variable is defined.
*
* @param string $name
*
* @return bool
*/
public function has(string $name);
/**
* Get an environment variable.
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/AdapterRepository.php | src/Repository/AdapterRepository.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository;
use Dotenv\Repository\Adapter\ReaderInterface;
use Dotenv\Repository\Adapter\WriterInterface;
use InvalidArgumentException;
final class AdapterRepository implements RepositoryInterface
{
/**
* The reader to use.
*
* @var \Dotenv\Reposito... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ImmutableWriter.php | src/Repository/Adapter/ImmutableWriter.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository\Adapter;
final class ImmutableWriter implements WriterInterface
{
/**
* The inner writer to use.
*
* @var \Dotenv\Repository\Adapter\WriterInterface
*/
private $writer;
/**
* The inner reader to use.
*
* @var \... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ReplacingWriter.php | src/Repository/Adapter/ReplacingWriter.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository\Adapter;
final class ReplacingWriter implements WriterInterface
{
/**
* The inner writer to use.
*
* @var \Dotenv\Repository\Adapter\WriterInterface
*/
private $writer;
/**
* The inner reader to use.
*
* @var \... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
vlucas/phpdotenv | https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/PutenvAdapter.php | src/Repository/Adapter/PutenvAdapter.php | <?php
declare(strict_types=1);
namespace Dotenv\Repository\Adapter;
use PhpOption\None;
use PhpOption\Option;
use PhpOption\Some;
final class PutenvAdapter implements AdapterInterface
{
/**
* Create a new putenv adapter instance.
*
* @return void
*/
private function __construct()
{
... | php | BSD-3-Clause | 2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1 | 2026-01-04T15:02:53.318618Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.