aedart / athenaeum-flysystem-db
Flysystem Database Adapter
Requires
- php: ^8.2
- aedart/athenaeum-container: ^8.14
- aedart/athenaeum-database: ^8.14
- aedart/athenaeum-streams: ^8.14
- illuminate/console: ^v11.31.0
- league/flysystem: ^3.29.1
Requires (Dev)
- dev-main
- 8.14.0
- 8.13.0
- 8.12.0
- 8.11.0
- 8.10.0
- 8.9.0
- 8.8.0
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.0
- 8.0.0
- 7.33.0
- 7.32.0
- 7.31.0
- 7.30.1
- 7.30.0
- 7.29.0
- 7.28.0
- 7.27.0
- 7.26.0
- 7.25.0
- 7.24.0
- 7.23.0
- 7.22.1
- 7.22.0
- 7.21.0
- 7.20.0
- 7.19.0
- 7.18.1
- 7.18.0
- 7.17.0
- 7.16.0
- 7.15.0
- 7.14.0
- 7.13.0
- 7.12.0
- 7.11.3
- 7.11.2
- 7.11.1
- 7.11.0
- 7.10.1
- 7.10.0
- 7.9.1
- 7.9.0
- 7.8.0
- 7.7.2
- 7.7.1
- 7.7.0
- 7.6.0
- 7.5.0
- 7.4.0
- 7.3.0
- 7.2.0
- 7.1.0
- 7.0.1
- 7.0.0
- 7.0.0-alpha.1
- 6.8.1
- 6.8.0
- 6.7.0
- 6.6.0
- 6.5.2
- 6.5.1
- 6.5.0
- 6.4.0
- 6.3.0
- 6.2.1
- 6.2.0
This package is auto-updated.
Last update: 2024-11-13 10:28:26 UTC
README
A Flysystem adapter that store files and directories in your database.
Supported Databases
Behind the scene, Laravel's Database package is used to execute queries, which grants support for the following databases:
- MariaDB
- MySQL
- PostgreSQL
- SQLite
- SQL Server
use Aedart\Flysystem\Db\Adapters\DatabaseAdapter; use Illuminate\Database\Capsule\Manager as Capsule; use League\Flysystem\Filesystem; // Establish database connection $capsule = new Capsule; $capsule->addConnection([ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => 'password', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ]); $connection = $capsule->getConnection(); // Create Database Adapter instance $adapter = new DatabaseAdapter( filesTable: 'files', contentsTable: 'files_contents', connection: $connection ); // Finally, create filesystem instance $filesystem = new Filesystem($adapter);
Note: If you wish to use this adapter within your Laravel Application, then you can choose register this package's Service Provider. See official documentation for more information.
Data Deduplication
The adapter makes use of Data Deduplication technique, which means that files that have the exact same content are only stored once.
Documentation
Please read the official documentation for additional information.
Repository
The mono repository is located at github.com/aedart/athenaeum
Versioning
This package follows Semantic Versioning 2.0.0
License
BSD-3-Clause, Read the LICENSE file included in this package