{"id":19664579,"url":"https://github.com/sourcebroker/deployer-loader","last_synced_at":"2025-04-28T21:33:40.325Z","repository":{"id":45450787,"uuid":"105436931","full_name":"sourcebroker/deployer-loader","owner":"sourcebroker","description":"Autoload of root project vendors and recursive load of deployer tasks.","archived":false,"fork":false,"pushed_at":"2022-12-28T15:32:55.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T00:09:41.057Z","etag":null,"topics":["deployer","deployment","loader","php","sb-dl"],"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.rst","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}},"created_at":"2017-10-01T11:17:23.000Z","updated_at":"2023-02-02T15:40:00.000Z","dependencies_parsed_at":"2023-01-31T06:46:08.681Z","dependency_job_id":null,"html_url":"https://github.com/sourcebroker/deployer-loader","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fdeployer-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcebroker","download_url":"https://codeload.github.com/sourcebroker/deployer-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224133771,"owners_count":17261303,"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":["deployer","deployment","loader","php","sb-dl"],"created_at":"2024-11-11T16:18:09.802Z","updated_at":"2025-04-28T21:33:40.317Z","avatar_url":"https://github.com/sourcebroker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"deployer-loader\n===============\n|\n\n.. image:: http://img.shields.io/packagist/v/sourcebroker/deployer-loader.svg?style=flat\n   :target: https://packagist.org/packages/sourcebroker/deployer-loader\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n   :target: https://packagist.org/packages/sourcebroker/deployer-loader\n\n|\n\n.. contents:: :local:\n\n\nWhat does it do?\n----------------\n\nThis package allows to load:\n\n1) single task or set of tasks from given path -\u003e loader type: ``path``\n2) set of tasks from \"deployer\" folder of composer package -\u003e loader type: ``package``\n3) loader config from composer package -\u003e loader type: ``get``\n\n\nInstallation\n------------\n::\n\n  composer require sourcebroker/deployer-loader\n\n\nUsage\n-----\n\n- TYPE ``path``\n\n  You can load single file or multiple files. You can use ``excludePattern`` to exclude.\n\n  ::\n\n   new \\SourceBroker\\DeployerLoader\\Load(\n      ['path' =\u003e 'vendor/sourcebroker/deployer-extended-database/deployer/db/task/db:copy.php'],\n      ['path' =\u003e 'vendor/sourcebroker/deployer-extended-database/deployer/db/task/db:move.php'],\n   );\n\n   new \\SourceBroker\\DeployerLoader\\Load(\n      ['path' =\u003e 'vendor/sourcebroker/deployer-extended-database/deployer/db', 'excludePattern' =\u003e '/move/'],\n      ['path' =\u003e 'vendor/sourcebroker/deployer-extended-media/deployer/media'],\n   );\n\n\n- TYPE ``file_phar``\n\n  A file is loaded from relative to root project. Allows to include Deployer phar file.\n\n  ::\n\n   new \\SourceBroker\\DeployerLoader\\Load(\n      ['file_phar' =\u003e 'recipe/common.php'],\n   );\n\n\n- TYPE ``package``\n\n  Files are loaded recursively form given package from hardcoded folder ``deployer``.\n\n  ::\n\n   new \\SourceBroker\\DeployerLoader\\Load(\n      ['package' =\u003e 'sourcebroker/deployer-extended-database'],\n      ['package' =\u003e 'sourcebroker/deployer-extended-media'],\n   );\n\n- TYPE ``get``\n\n  In case of ``get`` first the file with array of loader configurations is read from given package.\n  The logic to read the file is like:\n\n  - First it checks if the composer.json file contains the key ``extra.sourcebroker/deployer.loader-file``.\n  - If the key exists, it read it and execute inclusions.\n  - If the key does not exist, it defaults to the path ``config/loader.php`` within the package directory.\n\n  Then the loader configurations read from that file are executed.\n\n  Example of loader file: https://github.com/sourcebroker/deployer-typo3-database/blob/main/config/loader.php\n\n  ::\n\n   new \\SourceBroker\\DeployerLoader\\Load(\n      ['get' =\u003e 'sourcebroker/deployer-typo3-database'],\n      ['get' =\u003e 'sourcebroker/deployer-typo3-media'],\n      ['get' =\u003e 'sourcebroker/deployer-typo3-deploy-ci'],\n   );\n\n\nChangelog\n---------\n\nSee https://github.com/sourcebroker/deployer-loader/blob/master/CHANGELOG.rst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fdeployer-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcebroker%2Fdeployer-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fdeployer-loader/lists"}