{"id":28488106,"url":"https://github.com/sourcebroker/deployer-typo3-media","last_synced_at":"2026-02-13T21:37:09.877Z","repository":{"id":285495711,"uuid":"937770519","full_name":"sourcebroker/deployer-typo3-media","owner":"sourcebroker","description":"TYPO3 CMS config for sourcebroker/deployer-extended-media.","archived":false,"fork":false,"pushed_at":"2025-07-05T16:22:24.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-27T16:32:20.317Z","etag":null,"topics":["deployer","deployment","typo3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcebroker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-02-23T21:09:25.000Z","updated_at":"2025-07-05T16:22:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac9907e2-a94f-4391-bc51-5f8a9decb279","html_url":"https://github.com/sourcebroker/deployer-typo3-media","commit_stats":null,"previous_names":["sourcebroker/deployer-typo3-media"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sourcebroker/deployer-typo3-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-typo3-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-typo3-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-typo3-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-typo3-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcebroker","download_url":"https://codeload.github.com/sourcebroker/deployer-typo3-media/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-typo3-media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29418659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deployer","deployment","typo3"],"created_at":"2025-06-08T05:08:54.989Z","updated_at":"2026-02-13T21:37:09.850Z","avatar_url":"https://github.com/sourcebroker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\ndeployer-typo3-media\n====================\n\n[![Latest Stable Version](http://img.shields.io/packagist/v/sourcebroker/deployer-typo3-media.svg?style=flat)](https://packagist.org/packages/sourcebroker/deployer-typo3-media)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://packagist.org/packages/sourcebroker/deployer-typo3-media)\n\n## What does it do?\n\nThis package allows to sync media between instances using host data stored in [deployer](https://deployer.org) configuration.\n\nIt allows to copy files to your local instance, copy files between instances, but also symlink files instead of copy to save disk space (if the staging instance is at the same server as production).\n\nThis package only extends [sourcebroker/deployer-extended-media](https://github.com/sourcebroker/deployer-extended-media) with settings specific for TYPO3 CMS.\n\n\n## Installation\n\n1. Install package with composer:\n\n   ```\n   composer require sourcebroker/deployer-typo3-media\n   ```\n\n2. Put the following lines at the beginning of your `deploy.php`:\n\n   ```php\n   require_once(__DIR__ . '/vendor/autoload.php');\n\n   new \\SourceBroker\\DeployerLoader\\Loader([\n     ['get' =\u003e 'sourcebroker/deployer-typo3-media'],\n   ]);\n   ```\n\n3. Create a `.env` file (or `.env.local`) in your project root. The `.env` (or `.env.local`) file should be out of git\n   because you need to store there information about instance name in var `INSTANCE`. The `INSTANCE` value must correspond to\n   `host()` name.\n\n   For the following real, example configuration:\n\n   ```php\n   \u003c?php\n\n   namespace Deployer;\n\n   require_once(__DIR__ . '/vendor/autoload.php');\n\n   new \\SourceBroker\\DeployerLoader\\Loader([\n     ['get' =\u003e 'sourcebroker/deployer-typo3-media'],\n   ]);\n\n   host('production')\n      -\u003esetHostname('vm-dev.example.com')\n      -\u003esetRemoteUser('deploy')\n      -\u003eset('bin/php', '/usr/bin/php8.4')\n      -\u003eset('deploy_path', '~/t3base13/production');\n\n   host('staging')\n      -\u003esetHostname('vm-dev.example.com')\n      -\u003esetRemoteUser('deploy')\n      -\u003eset('bin/php', '/usr/bin/php8.4')\n      -\u003eset('deploy_path', '~/t3base13/staging');\n   ```\n\n   you would need to create file `.env` (or `.env.local`) with the following content:\n\n   - `INSTANCE=production` at host defined by `host('production')`\n   - `INSTANCE=staging` at host defined by `host('staging')`\n   - `INSTANCE=local` at your local environment (laptop)\n\n   As an alternative you can also not create any env file but make sure that the env variable INSTANCE exists in the system at hosts defined in deployer (and also at your local host).\n\n\n## TYPO3 sync media\n\nTYPO3 sync folder is `fileadmin` with exclusion of `_processed_` folder.\n\n```php\nset('media', function () {\n    return [\n        'filter' =\u003e [\n            '+ /' . get('web_path'),\n            '+ /' . get('web_path') . 'fileadmin/',\n            '- /' . get('web_path') . 'fileadmin/_processed_/*',\n            '+ /' . get('web_path') . 'fileadmin/**',\n            '- *'\n        ]\n    ];\n});\n```\n\n\n## Synchronizing media\n\nThe commands for synchronizing media for the example configuration above would be:\n\n- For syncing media from production to local instance (usually your laptop):\n\n  ```\n  dep media:pull production\n  ```\n\n- For syncing media from production to staging instance:\n\n  ```\n  dep media:copy production --options=target:staging\n  ```\n\n- For syncing media from production to staging, creating symlinks to each file in the shared folder\n  if both instances are at the same server (saves disk space):\n\n  ```\n  dep media:link production --options=target:staging\n  ```\n\n- For syncing media from local to staging (use with care - generally not recommended):\n\n  ```\n  dep media:push staging\n  ```\n\n- For syncing media from local to production (use with care! - generally strongly not recommended):\n\n  ```\n  dep media:push production\n  ```\n\nFor more options and ways to extend the sync process, visit [sourcebroker/deployer-extended-media](https://github.com/sourcebroker/deployer-extended-media).\n\n\n## Changelog\n\nSee [CHANGELOG.rst](https://github.com/sourcebroker/deployer-typo3-media/blob/master/CHANGELOG.rst)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fdeployer-typo3-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcebroker%2Fdeployer-typo3-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fdeployer-typo3-media/lists"}