{"id":20338221,"url":"https://github.com/openclassrooms/oneskybundle","last_synced_at":"2025-06-15T07:37:57.054Z","repository":{"id":57032102,"uuid":"53965364","full_name":"OpenClassrooms/OneSkyBundle","owner":"OpenClassrooms","description":"Symfony Bundle that provides utility commands for the OneSky Api","archived":false,"fork":false,"pushed_at":"2019-11-04T10:30:14.000Z","size":72,"stargazers_count":7,"open_issues_count":8,"forks_count":12,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-13T22:25:10.780Z","etag":null,"topics":[],"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/OpenClassrooms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-15T17:37:43.000Z","updated_at":"2020-11-28T23:46:53.000Z","dependencies_parsed_at":"2022-08-24T06:30:42.463Z","dependency_job_id":null,"html_url":"https://github.com/OpenClassrooms/OneSkyBundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/OpenClassrooms/OneSkyBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2FOneSkyBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2FOneSkyBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2FOneSkyBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2FOneSkyBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenClassrooms","download_url":"https://codeload.github.com/OpenClassrooms/OneSkyBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenClassrooms%2FOneSkyBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259940951,"owners_count":22935290,"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","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-11-14T21:12:04.708Z","updated_at":"2025-06-15T07:37:56.996Z","avatar_url":"https://github.com/OpenClassrooms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneSkyBundle\n[![Build Status](https://travis-ci.org/OpenClassrooms/OneSkyBundle.svg?branch=master)](https://travis-ci.org/OpenClassrooms/OneSkyBundle)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/87d6eebd-6344-4e30-86a6-71e501a2aa8b/mini.png)](https://insight.sensiolabs.com/projects/87d6eebd-6344-4e30-86a6-71e501a2aa8b)\n[![Coverage Status](https://coveralls.io/repos/github/OpenClassrooms/OneSkyBundle/badge.svg?branch=master)](https://coveralls.io/github/OpenClassrooms/OneSkyBundle?branch=master)\n\nThe OneSkyBundle offers integration of [OneSky Client](https://github.com/onesky/api-library-php5) for common tasks like pulling and pushing translations.  \n[OneSky](https://www.oneskyapp.com/) is a plateform that provides translations management.\n\n## Installation\nThis bundle can be installed using composer:\n\n```composer require openclassrooms/onesky-bundle```\n\nor by adding the package to the composer.json file directly:\n\n```json\n{\n    \"require\": {\n        \"openclassrooms/onesky-bundle\": \"*\"\n    }\n}\n```\n\nAfter the package has been installed, add the bundle to the AppKernel.php file:\n```php\n// in AppKernel::registerBundles()\n$bundles = array(\n    // ...\n    new OpenClassrooms\\Bundle\\OneSkyBundle\\OpenClassroomsOneSkyBundle(),\n    // ...\n);\n```\n\n## Configuration\n```yml\n# app/config/config.yml\n\nopenclassrooms_onesky:\n    api_key:  %onesky.api_key%\n    api_secret: %onesky.api_secret%\n    project_id: %onesky.project_id%\n    source_locale: %source_locale% #optional, default en\n    locales:\n      - fr\n      - es\n    file_format: %onesky.file_format% #optional, default xliff\n    file_paths:\n      - %path.to.translations.files.directory%\n    keep_all_strings: false # default true\n    \n```\n\n## Usage\n### Pull\nPull the translations from the OneSky API using the default configuration.\n\n\n```bash\nphp app/console openclassrooms:one-sky:pull\n```\n\n#### Options\n##### filePath\nfilePath source can be set as an option.\n```bash\nphp app/console openclassrooms:one-sky:pull --filePath=/path/to/source/files\nphp app/console openclassrooms:one-sky:pull --filePath=/path/to/source/files --filePath=/path/to/another/source/file\n```\n##### locale\nLocale can be set as an option.\n```bash\nphp app/console openclassrooms:one-sky:pull --locale=fr\nphp app/console openclassrooms:one-sky:pull --locale=fr --locale=es\n```\n\n### Push\nPush the translations from the OneSky API using the default configuration.\n\n\n```bash\nphp app/console openclassrooms:one-sky:push\n```\n\n#### Options\n##### filePath\nfilePath source can be set as an option.\n```bash\nphp app/console openclassrooms:one-sky:push --filePath=/path/to/source/files\nphp app/console openclassrooms:one-sky:push --filePath=/path/to/source/files --filePath=/path/to/another/source/file\n```\n##### locale\nLocale can be set as an option.\n```bash\nphp app/console openclassrooms:one-sky:push --locale=en\nphp app/console openclassrooms:one-sky:push --locale=en --locale=fr\n```\n\n### Update\nPull then push translations from the OneSky API using the default configuration.\n\n\n```bash\nphp app/console openclassrooms:one-sky:update\n```\n\n### Check translation progress\nCheck the translation progress from the OneSky API using the default configuration.\n\n\n```bash\nphp app/console openclassrooms:one-sky:check-translation-progress\n```\n\n#### Options\n##### locale\nLocale can be set as an option.\n```bash\nphp app/console openclassrooms:one-sky:check-translation-progress --locale=en\nphp app/console openclassrooms:one-sky:check-translation-progress --locale=en --locale=fr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclassrooms%2Foneskybundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclassrooms%2Foneskybundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclassrooms%2Foneskybundle/lists"}