{"id":22292017,"url":"https://github.com/aedart/athenaeum-flysystem-db","last_synced_at":"2025-07-28T23:32:55.453Z","repository":{"id":57678460,"uuid":"485707927","full_name":"aedart/athenaeum-flysystem-db","owner":"aedart","description":"[READ ONLY] Flysystem Database Adapter - see https://github.com/aedart/athenaeum","archived":false,"fork":false,"pushed_at":"2025-07-21T08:07:23.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T09:32:04.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aedart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-26T08:56:57.000Z","updated_at":"2025-07-21T08:07:26.000Z","dependencies_parsed_at":"2023-02-12T01:45:56.507Z","dependency_job_id":"d328810b-1b16-42bf-a85b-e39e4bf710a7","html_url":"https://github.com/aedart/athenaeum-flysystem-db","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"2952df1ab31290afb9c398bb2d4215104264545f"},"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"purl":"pkg:github/aedart/athenaeum-flysystem-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-flysystem-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-flysystem-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-flysystem-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-flysystem-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aedart","download_url":"https://codeload.github.com/aedart/athenaeum-flysystem-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aedart%2Fathenaeum-flysystem-db/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267604306,"owners_count":24114521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:19:18.039Z","updated_at":"2025-07-28T23:32:55.177Z","avatar_url":"https://github.com/aedart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Athenaeum Flysystem Database Adapter\n\nA [Flysystem](https://flysystem.thephpleague.com/docs/) adapter that store files and directories in your database.\n\n## Supported Databases\n\nBehind the scene, [Laravel's Database package](https://packagist.org/packages/illuminate/database) is used to execute queries, which grants support for the following databases:\n\n* MariaDB\n* MySQL\n* PostgreSQL\n* SQLite\n* SQL Server\n\n```php\nuse Aedart\\Flysystem\\Db\\Adapters\\DatabaseAdapter;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\nuse League\\Flysystem\\Filesystem;\n\n// Establish database connection\n$capsule = new Capsule;\n$capsule-\u003eaddConnection([\n    'driver' =\u003e 'mysql',\n    'host' =\u003e 'localhost',\n    'database' =\u003e 'database',\n    'username' =\u003e 'root',\n    'password' =\u003e 'password',\n    'charset' =\u003e 'utf8',\n    'collation' =\u003e 'utf8_unicode_ci',\n    'prefix' =\u003e '',\n]);\n\n$connection = $capsule-\u003egetConnection();\n\n// Create Database Adapter instance\n$adapter = new DatabaseAdapter(\n    filesTable: 'files',\n    contentsTable: 'files_contents',\n    connection: $connection\n);\n\n// Finally, create filesystem instance\n$filesystem = new Filesystem($adapter);\n```\n\n**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._\n\n## Data Deduplication\n\nThe adapter makes use of [Data Deduplication](https://en.wikipedia.org/wiki/Data_deduplication) technique, which means that files that have the exact same content are only stored once.\n\n## Documentation\n\nPlease read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.\n\n## Repository\n\nThe mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)\n\n## Versioning\n\nThis package follows [Semantic Versioning 2.0.0](http://semver.org/)\n\n## License\n\n[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-flysystem-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faedart%2Fathenaeum-flysystem-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faedart%2Fathenaeum-flysystem-db/lists"}