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/WhitespacePathNormalizerTest.php | src/WhitespacePathNormalizerTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use PHPUnit\Framework\TestCase;
class WhitespacePathNormalizerTest extends TestCase
{
/**
* @var WhitespacePathNormalizer
*/
private $normalizer;
protected function setUp(): void
{
$this->normalizer = new WhitespacePathNor... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToGenerateTemporaryUrl.php | src/UnableToGenerateTemporaryUrl.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToGenerateTemporaryUrl extends RuntimeException implements FilesystemException
{
public function __construct(string $reason, string $path, ?Throwable $previous = null)
{
parent::__constr... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/WhitespacePathNormalizer.php | src/WhitespacePathNormalizer.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
class WhitespacePathNormalizer implements PathNormalizer
{
public function normalizePath(string $path): string
{
$path = str_replace('\\', '/', $path);
$this->rejectFunkyWhiteSpace($path);
return $this->normalizeRelativePath(... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToDeleteDirectory.php | src/UnableToDeleteDirectory.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToDeleteDirectory extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location = '';
/**
* @var string
*/
private $reason;
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/DirectoryListing.php | src/DirectoryListing.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use ArrayIterator;
use Generator;
use IteratorAggregate;
use Traversable;
/**
* @template T
*/
class DirectoryListing implements IteratorAggregate
{
/**
* @param iterable<T> $listing
*/
public function __construct(private iterable $listi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/StorageAttributes.php | src/StorageAttributes.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use ArrayAccess;
use JsonSerializable;
interface StorageAttributes extends JsonSerializable, ArrayAccess
{
public const ATTRIBUTE_PATH = 'path';
public const ATTRIBUTE_TYPE = 'type';
public const ATTRIBUTE_FILE_SIZE = 'file_size';
public con... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToMoveFile.php | src/UnableToMoveFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToMoveFile extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $source;
/**
* @var string
*/
private $destination;
publ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToCheckFileExistence.php | src/UnableToCheckFileExistence.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
class UnableToCheckFileExistence extends UnableToCheckExistence
{
public function operation(): string
{
return FilesystemOperationFailed::OPERATION_FILE_EXISTS;
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToGeneratePublicUrl.php | src/UnableToGeneratePublicUrl.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToGeneratePublicUrl extends RuntimeException implements FilesystemException
{
public function __construct(string $reason, string $path, ?Throwable $previous = null)
{
parent::__construct... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ProxyArrayAccessToProperties.php | src/ProxyArrayAccessToProperties.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
/**
* @internal
*/
trait ProxyArrayAccessToProperties
{
private function formatPropertyName(string $offset): string
{
return str_replace('_', '', lcfirst(ucwords($offset, '_')));
}
/**
* @param mixed $of... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemOperationFailed.php | src/FilesystemOperationFailed.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
interface FilesystemOperationFailed extends FilesystemException
{
public const OPERATION_WRITE = 'WRITE';
public const OPERATION_UPDATE = 'UPDATE'; // not used
public const OPERATION_EXISTENCE_CHECK = 'EXISTENCE_CHECK';
public const OPERATION... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ChecksumAlgoIsNotSupported.php | src/ChecksumAlgoIsNotSupported.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use InvalidArgumentException;
final class ChecksumAlgoIsNotSupported extends InvalidArgumentException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathPrefixer.php | src/PathPrefixer.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use function rtrim;
use function strlen;
use function substr;
final class PathPrefixer
{
private string $prefix = '';
public function __construct(string $prefix, private string $separator = '/')
{
$this->prefix = rtrim($prefix, '\\/');
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/CorruptedPathDetected.php | src/CorruptedPathDetected.php | <?php
namespace League\Flysystem;
use RuntimeException;
final class CorruptedPathDetected extends RuntimeException implements FilesystemException
{
public static function forPath(string $path): CorruptedPathDetected
{
return new CorruptedPathDetected("Corrupted path detected: " . $path);
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToResolveFilesystemMount.php | src/UnableToResolveFilesystemMount.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
class UnableToResolveFilesystemMount extends RuntimeException implements FilesystemException
{
public static function becauseTheSeparatorIsMissing(string $path): UnableToResolveFilesystemMount
{
return new UnableToResol... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InvalidStreamProvided.php | src/InvalidStreamProvided.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use InvalidArgumentException as BaseInvalidArgumentException;
class InvalidStreamProvided extends BaseInvalidArgumentException implements FilesystemException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InvalidVisibilityProvided.php | src/InvalidVisibilityProvided.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use InvalidArgumentException;
use function var_export;
class InvalidVisibilityProvided extends InvalidArgumentException implements FilesystemException
{
public static function withVisibility(string $visibility, string $expectedMessage): InvalidVisibili... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToCopyFile.php | src/UnableToCopyFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToCopyFile extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $source;
/**
* @var string
*/
private $destination;
publ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/DirectoryAttributesTest.php | src/DirectoryAttributesTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use PHPUnit\Framework\TestCase;
/**
* @group core
*/
class DirectoryAttributesTest extends TestCase
{
/**
* @test
*/
public function exposing_some_values(): void
{
$attrs = new DirectoryAttributes('some/path');
$this-... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathPrefixerTest.php | src/PathPrefixerTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use PHPUnit\Framework\TestCase;
class PathPrefixerTest extends TestCase
{
/**
* @test
*/
public function path_prefixing_with_a_prefix(): void
{
$prefixer = new PathPrefixer('prefix');
$prefixedPath = $prefixer->prefixPa... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ChecksumProvider.php | src/ChecksumProvider.php | <?php
namespace League\Flysystem;
interface ChecksumProvider
{
/**
* @return string MD5 hash of the file contents
*
* @throws UnableToProvideChecksum
* @throws ChecksumAlgoIsNotSupported
*/
public function checksum(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/UnableToProvideChecksum.php | src/UnableToProvideChecksum.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToProvideChecksum extends RuntimeException implements FilesystemException
{
public function __construct(string $reason, string $path, ?Throwable $previous = null)
{
parent::__construct("... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToSetVisibility.php | src/UnableToSetVisibility.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
use function rtrim;
final class UnableToSetVisibility extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location;
/**
* @var string
*/
pr... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FileAttributes.php | src/FileAttributes.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
class FileAttributes implements StorageAttributes
{
use ProxyArrayAccessToProperties;
private string $type = StorageAttributes::TYPE_FILE;
public function __construct(
private string $path,
private ?int $fileSize = null,
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToCheckDirectoryExistence.php | src/UnableToCheckDirectoryExistence.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
class UnableToCheckDirectoryExistence extends UnableToCheckExistence
{
public function operation(): string
{
return FilesystemOperationFailed::OPERATION_DIRECTORY_EXISTS;
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Config.php | src/Config.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use function array_diff_key;
use function array_flip;
use function array_merge;
class Config
{
public const OPTION_COPY_IDENTICAL_PATH = 'copy_destination_same_as_source';
public const OPTION_MOVE_IDENTICAL_PATH = 'move_destination_same_as_source';
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToReadFile.php | src/UnableToReadFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToReadFile extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location = '';
/**
* @var string
*/
private $reason = '';
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToWriteFile.php | src/UnableToWriteFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToWriteFile extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location = '';
/**
* @var string
*/
private $reason;
p... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemAdapter.php | src/FilesystemAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
interface FilesystemAdapter
{
/**
* @throws FilesystemException
* @throws UnableToCheckExistence
*/
public function fileExists(string $path): bool;
/**
* @throws FilesystemException
* @throws UnableToCheckExistence
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ResolveIdenticalPathConflict.php | src/ResolveIdenticalPathConflict.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
class ResolveIdenticalPathConflict
{
public const IGNORE = 'ignore';
public const FAIL = 'fail';
public const TRY = 'try';
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToCreateDirectory.php | src/UnableToCreateDirectory.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToCreateDirectory extends RuntimeException implements FilesystemOperationFailed
{
private string $location;
private string $reason = '';
public static function atLocation(string $dirname, s... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathTraversalDetected.php | src/PathTraversalDetected.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
class PathTraversalDetected extends RuntimeException implements FilesystemException
{
private string $path;
public function path(): string
{
return $this->path;
}
public static function forPath(string $pat... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/DirectoryListingTest.php | src/DirectoryListingTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use Generator;
use PHPUnit\Framework\TestCase;
use function iterator_to_array;
/**
* @group core
*/
class DirectoryListingTest extends TestCase
{
/**
* @test
*/
public function mapping_a_listing(): void
{
$numbers = $this->g... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ExceptionInformationTest.php | src/ExceptionInformationTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use PHPUnit\Framework\TestCase;
/**
* @group core
*/
class ExceptionInformationTest extends TestCase
{
/**
* @test
*/
public function copy_exception_information(): void
{
$exception = UnableToCopyFile::fromLocationTo('from', ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToDeleteFile.php | src/UnableToDeleteFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToDeleteFile extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location = '';
/**
* @var string
*/
private $reason;
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnreadableFileEncountered.php | src/UnreadableFileEncountered.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
final class UnreadableFileEncountered extends RuntimeException implements FilesystemException
{
/**
* @var string
*/
private $location;
public function location(): string
{
return $this->location;
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToCheckExistence.php | src/UnableToCheckExistence.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
class UnableToCheckExistence extends RuntimeException implements FilesystemOperationFailed
{
final public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
{
parent::_... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ConfigTest.php | src/ConfigTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use PHPUnit\Framework\TestCase;
class ConfigTest extends TestCase
{
/**
* @test
*/
public function a_config_object_exposes_passed_options(): void
{
$config = new Config(['option' => 'value']);
$this->assertEquals('value... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PathNormalizer.php | src/PathNormalizer.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
interface PathNormalizer
{
public function normalizePath(string $path): string;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemTest.php | src/FilesystemTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use DateTimeImmutable;
use DateTimeInterface;
use Generator;
use GuzzleHttp\Psr7\StreamWrapper;
use GuzzleHttp\Psr7\Utils;
use IteratorAggregate;
use League\Flysystem\InMemory\InMemoryFilesystemAdapter;
use League\Flysystem\Local\LocalFilesystemAdapter;
use ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/MountManager.php | src/MountManager.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use DateTimeInterface;
use Throwable;
use function compact;
use function method_exists;
use function sprintf;
class MountManager implements FilesystemOperator
{
/**
* @var array<string, FilesystemOperator>
*/
private $filesystems = [];
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemOperator.php | src/FilesystemOperator.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
interface FilesystemOperator extends FilesystemReader, FilesystemWriter
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/CalculateChecksumFromStream.php | src/CalculateChecksumFromStream.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use function hash_final;
use function hash_init;
use function hash_update_stream;
trait CalculateChecksumFromStream
{
private function calculateChecksumFromStream(string $path, Config $config): string
{
try {
$stream = $this->read... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Visibility.php | src/Visibility.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
final class Visibility
{
public const PUBLIC = 'public';
public const PRIVATE = 'private';
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PortableVisibilityGuard.php | src/PortableVisibilityGuard.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
final class PortableVisibilityGuard
{
public static function guardAgainstInvalidInput(string $visibility): void
{
if ($visibility !== Visibility::PUBLIC && $visibility !== Visibility::PRIVATE) {
$className = Visibility::class;
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FileAttributesTest.php | src/FileAttributesTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use Generator;
use PHPUnit\Framework\TestCase;
use RuntimeException;
use function time;
/**
* @group core
*/
class FileAttributesTest extends TestCase
{
/**
* @test
*/
public function exposing_some_values(): void
{
$attrs =... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemException.php | src/FilesystemException.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use Throwable;
interface FilesystemException extends Throwable
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnableToRetrieveMetadata.php | src/UnableToRetrieveMetadata.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
use RuntimeException;
use Throwable;
final class UnableToRetrieveMetadata extends RuntimeException implements FilesystemOperationFailed
{
/**
* @var string
*/
private $location;
/**
* @var string
*/
private $metadataType... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/FilesystemWriter.php | src/FilesystemWriter.php | <?php
declare(strict_types=1);
namespace League\Flysystem;
interface FilesystemWriter
{
/**
* @throws UnableToWriteFile
* @throws FilesystemException
*/
public function write(string $location, string $contents, array $config = []): void;
/**
* @param mixed $contents
*
* @th... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ReadOnly/ReadOnlyFilesystemAdapter.php | src/ReadOnly/ReadOnlyFilesystemAdapter.php | <?php
namespace League\Flysystem\ReadOnly;
use DateTimeInterface;
use League\Flysystem\CalculateChecksumFromStream;
use League\Flysystem\ChecksumProvider;
use League\Flysystem\Config;
use League\Flysystem\DecoratedAdapter;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\UnableToCopyFile;
use League\Flysy... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/ReadOnly/ReadOnlyFilesystemAdapterTest.php | src/ReadOnly/ReadOnlyFilesystemAdapterTest.php | <?php
namespace League\Flysystem\ReadOnly;
use League\Flysystem\Config;
use League\Flysystem\FileAttributes;
use League\Flysystem\InMemory\InMemoryFilesystemAdapter;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableToCreateDirectory;
use League\Flysystem\UnableToDeleteDirectory;
use League\Flysystem\... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InMemory/InMemoryFilesystemAdapter.php | src/InMemory/InMemoryFilesystemAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\InMemory;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableToMoveFile;
use League\Flysystem\Un... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InMemory/StaticInMemoryAdapterRegistry.php | src/InMemory/StaticInMemoryAdapterRegistry.php | <?php
namespace League\Flysystem\InMemory;
class StaticInMemoryAdapterRegistry
{
/** @var array<string, InMemoryFilesystemAdapter> */
private static array $filesystems = [];
public static function get(string $name = 'default'): InMemoryFilesystemAdapter
{
return static::$filesystems[$name] ??... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InMemory/InMemoryFile.php | src/InMemory/InMemoryFile.php | <?php
declare(strict_types=1);
namespace League\Flysystem\InMemory;
use const FILEINFO_MIME_TYPE;
use finfo;
/**
* @internal
*/
class InMemoryFile
{
private string $contents = '';
private int $lastModified = 0;
private ?string $visibility = null;
public function updateContents(string $contents, ?... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InMemory/InMemoryFilesystemAdapterTest.php | src/InMemory/InMemoryFilesystemAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\InMemory;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\StorageAttributes;
use League\Flysystem\UnableToCopyFile;
use League\Flysystem\UnableToMov... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/InMemory/StaticInMemoryAdapterRegistryTest.php | src/InMemory/StaticInMemoryAdapterRegistryTest.php | <?php
namespace League\Flysystem\InMemory;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
class StaticInMemoryAdapterRegistryTest extends InMemoryFilesystemAdapterTest
{
/**
* @test
*/
public function using_different_name_to_segment_adapters(): void
{
$first = Stat... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/StubStorageClient.php | src/GoogleCloudStorage/StubStorageClient.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use Google\Cloud\Storage\StorageClient;
use function in_array;
class StubStorageClient extends StorageClient
{
private ?StubRiggedBucket $riggedBucket = null;
public function __construct(array $config = [])
{
parent::... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/GoogleCloudStorageAdapterTest.php | src/GoogleCloudStorage/GoogleCloudStorageAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
use League\Flysystem\Config;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\PathPrefixer;
use League\Flysystem\UnableToDeleteDirectory;
use League\Flysystem... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/GoogleCloudStorageAdapterWithoutAclTest.php | src/GoogleCloudStorage/GoogleCloudStorageAdapterWithoutAclTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
class GoogleCloudStorageAdapterWithoutAclTest extends GoogleCloudStorageAdapterTest
{
protected static function visibilityHandler(): VisibilityHandler
{
return new UniformBucketLevelAccessVisibility();
}
protected s... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/GoogleCloudStorageAdapter.php | src/GoogleCloudStorage/GoogleCloudStorageAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use DateTimeInterface;
use Google\Cloud\Core\Exception\NotFoundException;
use Google\Cloud\Storage\Bucket;
use Google\Cloud\Storage\StorageObject;
use League\Flysystem\ChecksumAlgoIsNotSupported;
use League\Flysystem\ChecksumProvider;
use ... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/StubRiggedBucket.php | src/GoogleCloudStorage/StubRiggedBucket.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use Google\Cloud\Storage\Bucket;
use LogicException;
use Throwable;
class StubRiggedBucket extends Bucket
{
private array $triggers = [];
public function failForObject(string $name, ?Throwable $throwable = null): void
{
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/VisibilityHandler.php | src/GoogleCloudStorage/VisibilityHandler.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use Google\Cloud\Storage\StorageObject;
interface VisibilityHandler
{
public function setVisibility(StorageObject $object, string $visibility): void;
public function determineVisibility(StorageObject $object): string;
public f... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/PortableVisibilityHandler.php | src/GoogleCloudStorage/PortableVisibilityHandler.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use Google\Cloud\Core\Exception\NotFoundException;
use Google\Cloud\Storage\Acl;
use Google\Cloud\Storage\StorageObject;
use League\Flysystem\Visibility;
class PortableVisibilityHandler implements VisibilityHandler
{
public const NO_P... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/GoogleCloudStorage/UniformBucketLevelAccessVisibility.php | src/GoogleCloudStorage/UniformBucketLevelAccessVisibility.php | <?php
declare(strict_types=1);
namespace League\Flysystem\GoogleCloudStorage;
use Google\Cloud\Storage\StorageObject;
class UniformBucketLevelAccessVisibility implements VisibilityHandler
{
public const NO_PREDEFINED_VISIBILITY = 'noPredefinedVisibility';
public function setVisibility(StorageObject $object... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnixVisibility/PortableVisibilityConverterTest.php | src/UnixVisibility/PortableVisibilityConverterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UnixVisibility;
use League\Flysystem\InvalidVisibilityProvided;
use League\Flysystem\Visibility;
use PHPUnit\Framework\TestCase;
/**
* @group unix-visibility
*/
class PortableVisibilityConverterTest extends TestCase
{
/**
* @test
*/
publi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnixVisibility/VisibilityConverter.php | src/UnixVisibility/VisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UnixVisibility;
interface VisibilityConverter
{
public function forFile(string $visibility): int;
public function forDirectory(string $visibility): int;
public function inverseForFile(int $visibility): string;
public function inverseForDirecto... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/UnixVisibility/PortableVisibilityConverter.php | src/UnixVisibility/PortableVisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\UnixVisibility;
use League\Flysystem\PortableVisibilityGuard;
use League\Flysystem\Visibility;
class PortableVisibilityConverter implements VisibilityConverter
{
public function __construct(
private int $filePublic = 0644,
private int $fi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AsyncAwsS3/AsyncAwsS3Adapter.php | src/AsyncAwsS3/AsyncAwsS3Adapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AsyncAwsS3;
use AsyncAws\Core\Exception\Http\ClientException;
use AsyncAws\Core\Stream\ResultStream;
use AsyncAws\S3\Input\GetObjectRequest;
use AsyncAws\S3\Result\HeadObjectOutput;
use AsyncAws\S3\S3Client;
use AsyncAws\S3\ValueObject\AwsObject;
use AsyncAws... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AsyncAwsS3/AsyncAwsS3AdapterTest.php | src/AsyncAwsS3/AsyncAwsS3AdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AsyncAwsS3;
use AsyncAws\Core\Exception\Http\ClientException;
use AsyncAws\Core\Exception\Http\NetworkException;
use AsyncAws\Core\Test\Http\SimpleMockedResponse;
use AsyncAws\Core\Test\ResultMockFactory;
use AsyncAws\S3\Result\HeadObjectOutput;
use AsyncAws\... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AsyncAwsS3/VisibilityConverter.php | src/AsyncAwsS3/VisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AsyncAwsS3;
use AsyncAws\S3\ValueObject\Grant;
interface VisibilityConverter
{
public function visibilityToAcl(string $visibility): string;
/**
* @param Grant[] $grants
*/
public function aclToVisibility(array $grants): string;
pu... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AsyncAwsS3/PortableVisibilityConverter.php | src/AsyncAwsS3/PortableVisibilityConverter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AsyncAwsS3;
use AsyncAws\S3\ValueObject\Grant;
use League\Flysystem\Visibility;
class PortableVisibilityConverter implements VisibilityConverter
{
private const PUBLIC_GRANTEE_URI = 'http://acs.amazonaws.com/groups/global/AllUsers';
private const PUB... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/AsyncAwsS3/S3ClientStub.php | src/AsyncAwsS3/S3ClientStub.php | <?php
declare(strict_types=1);
namespace League\Flysystem\AsyncAwsS3;
use AsyncAws\Core\Exception\Exception;
use AsyncAws\Core\Exception\Http\NetworkException;
use AsyncAws\Core\Result;
use AsyncAws\S3\Input\CopyObjectRequest;
use AsyncAws\S3\Input\DeleteObjectRequest;
use AsyncAws\S3\Input\DeleteObjectsRequest;
use... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/UnableToEstablishAuthenticityOfHost.php | src/PhpseclibV2/UnableToEstablishAuthenticityOfHost.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use League\Flysystem\FilesystemException;
use RuntimeException;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\UnableToEstablishAuthenticityOfHost" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\UnableToEstablis... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/SftpStub.php | src/PhpseclibV2/SftpStub.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @internal This is only used for testing purposes.
*
* @deprecated The "League\Flysystem\PhpseclibV2\SftpStub" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\SftpStub" instead.
*/
clas... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/UnableToConnectToSftpHost.php | src/PhpseclibV2/UnableToConnectToSftpHost.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use League\Flysystem\FilesystemException;
use RuntimeException;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\UnableToConnectToSftpHost" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\UnableToConnectToSftpHost"... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/SftpAdapter.php | src/PhpseclibV2/SftpAdapter.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
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/PhpseclibV2/ConnectionProvider.php | src/PhpseclibV2/ConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\ConnectionProvider" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\ConnectionProvider" instead.
*/
interface ConnectionProvider
{
publi... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/SftpConnectionProviderTest.php | src/PhpseclibV2/SftpConnectionProviderTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
use PHPUnit\Framework\TestCase;
use function class_exists;
/**
* @group sftp
* @group sftp-connection
* @group legacy
*/
class SftpConnectionProviderTest extends TestCase
{
protected function setUp(): void
{
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/UnableToLoadPrivateKey.php | src/PhpseclibV2/UnableToLoadPrivateKey.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use League\Flysystem\FilesystemException;
use RuntimeException;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\UnableToLoadPrivateKey" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\UnableToLoadPrivateKey" inste... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/SftpConnectionProvider.php | src/PhpseclibV2/SftpConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Crypt\RSA;
use phpseclib\Net\SFTP;
use phpseclib\System\SSH\Agent;
use Throwable;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\SftpConnectionProvider" class is deprecated since Flysystem 3.0, use "League\Flysystem\Phpseclib... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/FixatedConnectivityChecker.php | src/PhpseclibV2/FixatedConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\FixatedConnectivityChecker" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\FixatedConnectivityChecker" instead.
*/
class FixatedConnectivit... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/ConnectivityChecker.php | src/PhpseclibV2/ConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\ConnectivityChecker" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\ConnectivityChecker" instead.
*/
interface ConnectivityChecker
{
pu... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/UnableToAuthenticate.php | src/PhpseclibV2/UnableToAuthenticate.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use League\Flysystem\FilesystemException;
use RuntimeException;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\UnableToAuthenticate" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\UnableToAuthenticate" instead.
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/StubSftpConnectionProvider.php | src/PhpseclibV2/StubSftpConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\StubSftpConnectionProvider" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\StubSftpConnectionProvider" instead.
*/
class StubSftpConnection... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/PhpseclibV2/SftpAdapterTest.php | src/PhpseclibV2/SftpAdapterTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
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/PhpseclibV2/SimpleConnectivityChecker.php | src/PhpseclibV2/SimpleConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\PhpseclibV2;
use phpseclib\Net\SFTP;
/**
* @deprecated The "League\Flysystem\PhpseclibV2\SimpleConnectivityChecker" class is deprecated since Flysystem 3.0, use "League\Flysystem\PhpseclibV3\SimpleConnectivityChecker" instead.
*/
class SimpleConnectivityCh... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToEnableUtf8Mode.php | src/Ftp/UnableToEnableUtf8Mode.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
final class UnableToEnableUtf8Mode 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/RawListFtpConnectivityCheckerTest.php | src/Ftp/RawListFtpConnectivityCheckerTest.php | <?php
namespace League\Flysystem\Ftp;
use League\Flysystem\AdapterTestUtilities\RetryOnTestException;
use PHPUnit\Framework\TestCase;
/**
* @group ftp
*/
class RawListFtpConnectivityCheckerTest extends TestCase
{
use RetryOnTestException;
/**
* @test
*/
public function detecting_if_a_connecti... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/StubConnectionProvider.php | src/Ftp/StubConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
class StubConnectionProvider implements ConnectionProvider
{
public mixed $connection;
public function __construct(private ConnectionProvider $provider)
{
}
public function createConnection(FtpConnectionOptions $options)
{
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToResolveConnectionRoot.php | src/Ftp/UnableToResolveConnectionRoot.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
use Throwable;
final class UnableToResolveConnectionRoot extends RuntimeException implements FtpConnectionException
{
private function __construct(string $message, ?Throwable $previous = null)
{
parent::__construct(... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToConnectToFtpHost.php | src/Ftp/UnableToConnectToFtpHost.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
final class UnableToConnectToFtpHost extends RuntimeException implements FtpConnectionException
{
public static function forHost(string $host, int $port, bool $ssl, string $reason = ''): UnableToConnectToFtpHost
{
$... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/NoopCommandConnectivityCheckerTest.php | src/Ftp/NoopCommandConnectivityCheckerTest.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\AdapterTestUtilities\RetryOnTestException;
use PHPUnit\Framework\TestCase;
/**
* @group ftp
*/
class NoopCommandConnectivityCheckerTest extends TestCase
{
use RetryOnTestException;
protected function setUp(): void
{
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/ConnectionProvider.php | src/Ftp/ConnectionProvider.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
interface ConnectionProvider
{
/**
* @return resource
*/
public function createConnection(FtpConnectionOptions $options);
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/NoopCommandConnectivityChecker.php | src/Ftp/NoopCommandConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use TypeError;
use ValueError;
class NoopCommandConnectivityChecker implements ConnectivityChecker
{
public function isConnected($connection): bool
{
// @codeCoverageIgnoreStart
try {
$response = @ftp_raw($connection,... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToSetFtpOption.php | src/Ftp/UnableToSetFtpOption.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
class UnableToSetFtpOption extends RuntimeException implements FtpConnectionException
{
public static function whileSettingOption(string $option): UnableToSetFtpOption
{
return new UnableToSetFtpOption("Unable to se... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/RawListFtpConnectivityChecker.php | src/Ftp/RawListFtpConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use ValueError;
class RawListFtpConnectivityChecker implements ConnectivityChecker
{
/**
* @inheritDoc
*/
public function isConnected($connection): bool
{
try {
return $connection !== false && @ftp_rawlist($conn... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/InvalidListResponseReceived.php | src/Ftp/InvalidListResponseReceived.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\FilesystemException;
use RuntimeException;
class InvalidListResponseReceived extends RuntimeException implements FilesystemException
{
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/ConnectivityCheckerThatCanFail.php | src/Ftp/ConnectivityCheckerThatCanFail.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
class ConnectivityCheckerThatCanFail implements ConnectivityChecker
{
private bool $failNextCall = false;
public function __construct(private ConnectivityChecker $connectivityChecker)
{
}
public function failNextCall(): void
{
... | php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/ConnectivityChecker.php | src/Ftp/ConnectivityChecker.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
interface ConnectivityChecker
{
/**
* @param resource $connection
*/
public function isConnected($connection): bool;
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
thephpleague/flysystem | https://github.com/thephpleague/flysystem/blob/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277/src/Ftp/UnableToAuthenticate.php | src/Ftp/UnableToAuthenticate.php | <?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use RuntimeException;
final class UnableToAuthenticate extends RuntimeException implements FtpConnectionException
{
public function __construct()
{
parent::__construct("Unable to login/authenticate with FTP");
}
}
| php | MIT | 5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277 | 2026-01-04T15:02:49.867552Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.