class AwsS3V3Adapter extends FilesystemAdapter (View source)
| Conditionable | |
| Conditionable | |
| Macroable |
| static protected array | $macros | The registered string macros. | from Macroable |
| protected FilesystemOperator | $driver | The Flysystem filesystem implementation. | from FilesystemAdapter |
| protected FilesystemAdapter | $adapter | The Flysystem adapter implementation. | from FilesystemAdapter |
| protected array | $config | The filesystem configuration. | from FilesystemAdapter |
| protected PathPrefixer | $prefixer | The Flysystem PathPrefixer instance. | from FilesystemAdapter |
| protected Closure|null | $temporaryUrlCallback | The temporary URL builder callback. | from FilesystemAdapter |
| protected S3Client | $client | The AWS S3 client. |
| $this|TWhenReturnType | when($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
| $this|TUnlessReturnType | unless($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
| static void | macro(string $name, object|callable $macro)
Register a custom macro. | from Macroable |
| static void | mixin(object $mixin, bool $replace = true)
Mix another object into the class. | from Macroable |
| static bool | hasMacro(string $name)
Checks if macro is registered. | from Macroable |
| static void | flushMacros()
Flush the existing macros. | from Macroable |
| static mixed | __callStatic(string $method, array $parameters)
Dynamically handle calls to the class. | from Macroable |
| mixed | __call(string $method, array $parameters)
Dynamically handle calls to the class. | from Macroable |
| void | __construct(FilesystemOperator $driver, FilesystemAdapter $adapter, array $config, S3Client $client)
Create a new AwsS3V3FilesystemAdapter instance. | |
| $this | assertExists(string|array $path, string|null $content = null)
Assert that the given file or directory exists. | from FilesystemAdapter |
| $this | assertMissing(string|array $path)
Assert that the given file or directory does not exist. | from FilesystemAdapter |
| $this | assertDirectoryEmpty(string $path)
Assert that the given directory is empty. | from FilesystemAdapter |
| bool | exists(string $path)
Determine if a file or directory exists. | from FilesystemAdapter |
| bool | missing(string $path)
Determine if a file or directory is missing. | from FilesystemAdapter |
| bool | fileExists(string $path)
Determine if a file exists. | from FilesystemAdapter |
| bool | fileMissing(string $path)
Determine if a file is missing. | from FilesystemAdapter |
| bool | directoryExists(string $path)
Determine if a directory exists. | from FilesystemAdapter |
| bool | directoryMissing(string $path)
Determine if a directory is missing. | from FilesystemAdapter |
| string | path(string $path)
Get the full path to the file that exists at the given relative path. | from FilesystemAdapter |
| string|null | get(string $path)
Get the contents of a file. | from FilesystemAdapter |
| array|null | json(string $path, int $flags = 0)
Get the contents of a file as decoded JSON. | from FilesystemAdapter |
| StreamedResponse | response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline')
Create a streamed response for a given file. | from FilesystemAdapter |
| StreamedResponse | download(string $path, string|null $name = null, array $headers = [])
Create a streamed download response for a given file. | from FilesystemAdapter |
| string | fallbackName(string $name)
Convert the string to ASCII characters that are equivalent to the given name. | from FilesystemAdapter |
| bool | put(string $path, StreamInterface|File|UploadedFile|string|resource $contents, mixed $options = [])
Write the contents of a file. | from FilesystemAdapter |
| string|false | putFile(File|UploadedFile|string $path, File|UploadedFile|string|array|null $file = null, mixed $options = [])
Store the uploaded file on the disk. | from FilesystemAdapter |
| string|false | putFileAs(File|UploadedFile|string $path, File|UploadedFile|string|array|null $file, string|array|null $name = null, mixed $options = [])
Store the uploaded file on the disk with a given name. | from FilesystemAdapter |
| string | getVisibility(string $path)
Get the visibility for the given path. | from FilesystemAdapter |
| bool | setVisibility(string $path, string $visibility)
Set the visibility for the given path. | from FilesystemAdapter |
| bool | prepend(string $path, string $data, string $separator = PHP_EOL)
Prepend to a file. | from FilesystemAdapter |
| bool | append(string $path, string $data, string $separator = PHP_EOL)
Append to a file. | from FilesystemAdapter |
| bool | delete(string|array $paths)
Delete the file at a given path. | from FilesystemAdapter |
| bool | copy(string $from, string $to)
Copy a file to a new location. | from FilesystemAdapter |
| bool | move(string $from, string $to)
Move a file to a new location. | from FilesystemAdapter |
| int | size(string $path)
Get the file size of a given file. | from FilesystemAdapter |
| string|false | checksum(string $path, array $options = [])
Get the checksum for a file. | from FilesystemAdapter |
| string|false | mimeType(string $path)
Get the mime-type of a given file. | from FilesystemAdapter |
| int | lastModified(string $path)
Get the file's last modification time. | from FilesystemAdapter |
| resource|null | readStream(string $path)
Get a resource to read the file. | from FilesystemAdapter |
| bool | writeStream(string $path, resource $resource, array $options = [])
Write a new file using a stream. | from FilesystemAdapter |
| string | url(string $path)
Get the URL for the file at the given path. | |
| string | getFtpUrl(string $path)
Get the URL for the file at the given path. | from FilesystemAdapter |
| string | getLocalUrl(string $path)
Get the URL for the file at the given path. | from FilesystemAdapter |
| bool | providesTemporaryUrls()
Determine if temporary URLs can be generated. | |
| string | temporaryUrl(string $path, DateTimeInterface $expiration, array $options = [])
Get a temporary URL for the file at the given path. | |
| array | temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = [])
Get a temporary upload URL for the file at the given path. | |
| string | concatPathToUrl(string $url, string $path)
Concatenate a path to a URL. | from FilesystemAdapter |
| UriInterface | replaceBaseUrl(UriInterface $uri, string $url)
Replace the scheme, host and port of the given UriInterface with values from the given URL. | from FilesystemAdapter |
| array | files(string|null $directory = null, bool $recursive = false)
Get an array of all files in a directory. | from FilesystemAdapter |
| array | allFiles(string|null $directory = null)
Get all of the files from the given directory (recursive). | from FilesystemAdapter |
| array | directories(string|null $directory = null, bool $recursive = false)
Get all of the directories within a given directory. | from FilesystemAdapter |
| array | allDirectories(string|null $directory = null)
Get all the directories within a given directory (recursive). | from FilesystemAdapter |
| bool | makeDirectory(string $path)
Create a directory. | from FilesystemAdapter |
| bool | deleteDirectory(string $directory)
Recursively delete a directory. | from FilesystemAdapter |
| FilesystemOperator | getDriver()
Get the Flysystem driver. | from FilesystemAdapter |
| FilesystemAdapter | getAdapter()
Get the Flysystem adapter. | from FilesystemAdapter |
| array | getConfig()
Get the configuration values. | from FilesystemAdapter |
| string|null | parseVisibility(string|null $visibility)
Parse the given visibility value. | from FilesystemAdapter |
| void | buildTemporaryUrlsUsing(Closure $callback)
Define a custom temporary URL builder callback. | from FilesystemAdapter |
| bool | throwsExceptions()
Determine if Flysystem exceptions should be thrown. | from FilesystemAdapter |
| S3Client | getClient()
Get the underlying S3 client. |
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Register a custom macro.
Mix another object into the class.
Checks if macro is registered.
Flush the existing macros.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Create a new AwsS3V3FilesystemAdapter instance.
Assert that the given file or directory exists.
Assert that the given file or directory does not exist.
Assert that the given directory is empty.
Determine if a file or directory exists.
Determine if a file or directory is missing.
Determine if a file exists.
Determine if a file is missing.
Determine if a directory exists.
Determine if a directory is missing.
Get the full path to the file that exists at the given relative path.
Get the contents of a file.
Get the contents of a file as decoded JSON.
Create a streamed response for a given file.
Create a streamed download response for a given file.
Convert the string to ASCII characters that are equivalent to the given name.
Write the contents of a file.
Store the uploaded file on the disk.
Store the uploaded file on the disk with a given name.
Get the visibility for the given path.
Set the visibility for the given path.
Prepend to a file.
Append to a file.
Delete the file at a given path.
Copy a file to a new location.
Move a file to a new location.
Get the file size of a given file.
Get the checksum for a file.
Get the mime-type of a given file.
Get the file's last modification time.
Get a resource to read the file.
Write a new file using a stream.
Get the URL for the file at the given path.
Get the URL for the file at the given path.
Get the URL for the file at the given path.
Determine if temporary URLs can be generated.
Get a temporary URL for the file at the given path.
Get a temporary upload URL for the file at the given path.
Concatenate a path to a URL.
Replace the scheme, host and port of the given UriInterface with values from the given URL.
Get an array of all files in a directory.
Get all of the files from the given directory (recursive).
Get all of the directories within a given directory.
Get all the directories within a given directory (recursive).
Create a directory.
Recursively delete a directory.
Get the Flysystem driver.
Get the Flysystem adapter.
Get the configuration values.
Parse the given visibility value.
Define a custom temporary URL builder callback.
Determine if Flysystem exceptions should be thrown.
Get the underlying S3 client.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Filesystem/AwsS3V3Adapter.html