{"id":30954695,"url":"https://github.com/lmatte7/platformbundle","last_synced_at":"2026-04-16T17:38:55.814Z","repository":{"id":57015472,"uuid":"95813423","full_name":"lmatte7/PlatformBundle","owner":"lmatte7","description":"A bundle to add platform.sh specific commands to a Symfony project","archived":false,"fork":false,"pushed_at":"2018-03-06T14:13:43.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-10T17:25:43.867Z","etag":null,"topics":["machine-learning","platformbundle","platformsh","rsync","symfony"],"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/lmatte7.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}},"created_at":"2017-06-29T19:42:18.000Z","updated_at":"2018-03-05T21:32:33.000Z","dependencies_parsed_at":"2022-08-22T09:31:41.169Z","dependency_job_id":null,"html_url":"https://github.com/lmatte7/PlatformBundle","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lmatte7/PlatformBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmatte7%2FPlatformBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmatte7%2FPlatformBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmatte7%2FPlatformBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmatte7%2FPlatformBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmatte7","download_url":"https://codeload.github.com/lmatte7/PlatformBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmatte7%2FPlatformBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274623447,"owners_count":25319691,"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-09-11T02:00:13.660Z","response_time":74,"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":["machine-learning","platformbundle","platformsh","rsync","symfony"],"created_at":"2025-09-11T11:04:57.868Z","updated_at":"2026-04-16T17:38:55.759Z","avatar_url":"https://github.com/lmatte7.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlatformBundle\nA Symfony bundle to add commands that can be used with Platform.sh  \n_Note: This bundle is still under development towards a version 1. It is highly reccomended to have a version control system in place prior to running any commands_\n\n## Installation  \nAdd the following to your composer.json file.\n\n```\n\"require\": {\n    ...\n    \"lmatte7/PlatformBundle\": \"1.0\"\n},\n```\n\nAdd the following to your AppKernel.php\n\n```\npublic function registerBundles()\n    {\n        $bundles = [\n            ...\n            new lmatte7\\PlatformBundle\\lmatte7PlatformBundle(),\n        ];\n\n    }\n```\n\nThen run `composer update`\n\n## Available Commands\n\nThere are three commands available:\n\n`rsync`: Sync files from or to your platform.sh environments. Will only sync files in /web\n\n`sync_db`: Sync databases from or to your platform.sh environments\n\n`init`: Set up the necessary files to create a platform.sh project\n\n\n## Rsync\n```\nUsage:\n  platform:rsync [options]\n\nOptions:\n  -d, --direction=DIRECTION                      The direction to rsync. Options are \"to\" or \"from\" production.\n  -f, --directory[=DIRECTORY]                    The directory to sync with no starting slash, leave blank to sync the entire web directory\n  -s, --source-environment[=SOURCE-ENVIRONMENT]  The environment to sync files with. Defaults to current environment\n  -h, --help                                     Display this help message\n```\n\n### Example:\nTo sync the local web directory with your current platform.sh environment  \n`bin/console platform:rsync -d from`  \n\nTo sync the platform.sh master environment web directory with your current web directory  \n`bin/console platform:rsync -d to -s master`  \n\nTo sync only the local /web/upload directory with the master platform.sh env /web/upload  \n`bin/console platform:rsync -d to -f upload -s master`  \n\n## Sync DB\n```\nUsage:\n     platform:sync_db [options]\n   \n   Options:\n     -d, --direction[=DIRECTION]                    The direction to sync data. Options are to and from. Option defaults to from\n     -s, --source-environment[=SOURCE-ENVIRONMENT]  The environment to sync data with. Defaults to current environment\n     -h, --help                                     Display this help message\n```\n\n### Example:\nTo sync the local database with your current platform.sh environment database\n`bin/console platform:sync_db -d from`  \n\nTo sync the platform.sh master environment database with your local database\n`bin/console platform:rsync -d from -s master`  \n\n##### Note: Must have mysql and mysqldump available as command line options\n## Platform Init\n```\nUsage:\n     platform:init\n   \n   Options:\n     -h, --help            Display this help message\n```  \n\nCreates default config files needed to create a platform.sh project. Uses the suggested files from the platform.sh Symfony example project. Uses MySql for the database. It is highly recommended these are reviewed before pushing to a live server. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmatte7%2Fplatformbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmatte7%2Fplatformbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmatte7%2Fplatformbundle/lists"}