{"id":20886991,"url":"https://github.com/fleetbase/verdaccio-composer-middleware","last_synced_at":"2025-04-05T05:44:29.282Z","repository":{"id":209776348,"uuid":"724920281","full_name":"fleetbase/verdaccio-composer-middleware","owner":"fleetbase","description":"Verdaccio middleware plugin which enables handling of composer/packagist dependency requests.","archived":false,"fork":false,"pushed_at":"2024-08-07T06:28:39.000Z","size":446,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T12:54:34.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fleetbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2023-11-29T03:56:34.000Z","updated_at":"2025-02-14T11:08:45.000Z","dependencies_parsed_at":"2023-11-29T04:40:24.493Z","dependency_job_id":"5d3dad19-90b2-4107-9157-414087eacd80","html_url":"https://github.com/fleetbase/verdaccio-composer-middleware","commit_stats":null,"previous_names":["fleetbase/verdaccio-composer-middleware"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fverdaccio-composer-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fverdaccio-composer-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fverdaccio-composer-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fleetbase%2Fverdaccio-composer-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fleetbase","download_url":"https://codeload.github.com/fleetbase/verdaccio-composer-middleware/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294463,"owners_count":20915338,"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-18T08:18:42.191Z","updated_at":"2025-04-05T05:44:29.258Z","avatar_url":"https://github.com/fleetbase.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fleetbase Verdaccio Composer Middleware Plugin\n\nThe Fleetbase Verdaccio Composer Middleware Plugin enables Verdaccio to serve as a repository manager for Composer packages, facilitating the publishing and management of PHP packages alongside npm packages. This integration supports the official Fleetbase registry ([https://registry.fleetbase.io](https://registry.fleetbase.io)), which is a customized version of Verdaccio tailored to handle diverse protocols including npm and Composer, specifically designed to accommodate the needs of the Fleetbase ecosystem.\n\n## Features\n\n- **Composer Support**: Allows Verdaccio to act as a Composer repository, enabling it to manage PHP package dependencies.\n- **Dual Protocol Functionality**: Integrates seamlessly with Verdaccio's existing npm protocol support, providing a unified approach to package management across different technology stacks within the Fleetbase ecosystem.\n\n## Installation\n\nTo install the plugin, run the following command in your terminal:\n\n```bash\nnpm install @fleetbase/verdaccio-composer-middleware\n```\n\n## Configuration\n\nAfter installation, add the following configuration to the `config.yaml` file of your Verdaccio server to enable the plugin:\n\n```yaml\nmiddlewares:\n  '@fleetbase/verdaccio-composer-middleware':\n    enabled: true\n```\n\nEnsure the plugin is enabled as shown to activate Composer support within your Verdaccio registry.\n\n## Usage\n\nOnce enabled, the plugin allows your Verdaccio server to handle Composer packages. This involves both publishing packages using Composer and fetching packages as dependencies in PHP projects.\n\n## How to Publish a Composer Package\n\n1. Configure your Composer project to recognize your Verdaccio server as a repository.\n2. Use Composer's publish commands to push packages to the Verdaccio server configured with this middleware.\n\n## How to Use Composer Packages\n\n- In your PHP projects, specify the Verdaccio server as a repository source in your `composer.json` to allow `composer install` to fetch packages from your custom repository.\n\n```json\n{\n    \"repositories\": [\n        {\n            \"type\": \"composer\",\n            \"url\": \"https://registry.fleetbase.io\"\n        }\n    ]\n}\n```\n\n## Contributing\n\nContributions to the Fleetbase Verdaccio Composer Middleware Plugin are highly appreciated. Whether it's feature requests, bug fixes, or improvements, please feel free to fork the repository and submit pull requests. Check out our [CONTRIBUTING.md](CONTRIBUTING.md) document for more information on contributing guidelines.\n\n## License\n\nThis plugin is licensed under the AGPL v3 License. Detailed terms and conditions can be found in the [LICENSE.md](LICENSE.md) file.\n\n## Support\n\nFor support, feature requests, or any questions about using the plugin, please open an issue on our GitHub repository at [https://github.com/fleetbase/verdaccio-composer-middleware/issues](https://github.com/fleetbase/verdaccio-composer-middleware/issues).\n\n## Acknowledgments\n\n- Thanks to the Verdaccio community for providing a robust foundation for plugin development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fverdaccio-composer-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffleetbase%2Fverdaccio-composer-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffleetbase%2Fverdaccio-composer-middleware/lists"}