{"id":21044044,"url":"https://github.com/metabolism/package-actions","last_synced_at":"2025-05-15T17:32:22.189Z","repository":{"id":62527372,"uuid":"122307109","full_name":"metabolism/package-actions","owner":"metabolism","description":"Composer plugin : allow file and folder actions uppon package installation or update","archived":false,"fork":false,"pushed_at":"2023-01-16T17:27:24.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T14:23:59.020Z","etag":null,"topics":["actions","composer","composer-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metabolism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-21T07:56:20.000Z","updated_at":"2024-02-22T11:08:32.000Z","dependencies_parsed_at":"2023-02-10T05:15:34.307Z","dependency_job_id":null,"html_url":"https://github.com/metabolism/package-actions","commit_stats":null,"previous_names":["jerome-barbato/package-actions","wearemetabolism/package-actions","metabolism/package-actions"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabolism%2Fpackage-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabolism%2Fpackage-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabolism%2Fpackage-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabolism%2Fpackage-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metabolism","download_url":"https://codeload.github.com/metabolism/package-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388249,"owners_count":22063012,"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":["actions","composer","composer-plugin"],"created_at":"2024-11-19T14:15:15.753Z","updated_at":"2025-05-15T17:32:21.621Z","avatar_url":"https://github.com/metabolism.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package actions\r\n \r\nadd copy/create/remove/rename/symlink per package actions \r\n\r\navailable for both `post-package-install` and `post-package-update`\r\n\r\n## Installation\r\n\r\n    composer require metabolism/package-actions\r\n\r\n## Example\r\n\r\n    \"extra\": {\r\n        \"post-package-install\": {\r\n            \"create\": {\r\n                \"vendor/package-name\": {\r\n                    \"public/uploads\": 777,\r\n                    \"public/download\": 655\r\n            },\r\n            \"copy\": {\r\n                \"vendor/package-name\": {\r\n                    \"folder/file.php\": \"public/myfile.php\",\r\n                }\r\n            },\r\n            \"symlink\": {\r\n                \"vendor/package-name\": {\r\n                    \"folder/file.php\": \"public/myfile.php\",\r\n                }\r\n            }\r\n            \"rename\": {\r\n                \"vendor/package-name\": {\r\n                    \"public/myfile.php\": \"public/file.php\",\r\n                }\r\n            }\r\n            \"remove\": {\r\n                \"vendor/package-name\": [\"public/myfile.php\"]\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n### Create\r\n\r\n     destination : permissions\r\n  \r\n  `destination` is relative to the composer.json file\r\n  \r\n  `permissions` use umask, only 3 last digits\r\n\r\n### Copy / Symlink\r\n\r\n     source : destination\r\n  \r\n  `source` is relative to the package folder\r\n\r\n  `destination` is relative to the composer.json file\r\n\r\n### Rename\r\n\r\n     source : destination\r\n  \r\n  `source` and `destination` are relative to the composer.json file\r\n\r\n### Remove\r\n\r\n     [destination]\r\n  \r\n  `destination` is relative to the composer.json file","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabolism%2Fpackage-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetabolism%2Fpackage-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabolism%2Fpackage-actions/lists"}