{"id":16314978,"url":"https://github.com/cebe/composer-bower","last_synced_at":"2025-10-25T17:30:20.832Z","repository":{"id":18189911,"uuid":"21307916","full_name":"cebe/composer-bower","owner":"cebe","description":"Proof of concept for a repository to install bower packages using composer. DEPRECATED","archived":false,"fork":false,"pushed_at":"2014-11-05T14:40:33.000Z","size":372,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T09:22:19.955Z","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/cebe.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":"2014-06-28T17:44:08.000Z","updated_at":"2019-08-13T15:44:48.000Z","dependencies_parsed_at":"2022-09-02T18:31:17.342Z","dependency_job_id":null,"html_url":"https://github.com/cebe/composer-bower","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcomposer-bower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcomposer-bower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcomposer-bower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcomposer-bower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebe","download_url":"https://codeload.github.com/cebe/composer-bower/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238183498,"owners_count":19430128,"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-10-10T21:55:46.023Z","updated_at":"2025-10-25T17:30:20.435Z","avatar_url":"https://github.com/cebe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"composer-bower\n==============\n\nProof of concept for a repository to install bower packages using composer.\n\n**DEPRECATED: This project will not be continued, there is a much better solution.  \nUse the [composer asset plugin] instead.**\n\n[composer asset plugin]: https://github.com/francoispluchino/composer-asset-plugin\n\n\nThe idea\n--------\n\nCreate a composer repository like packagist which provides package information of bower packages in composer format.\n\nThis repository will be filled with information from the [bower registry][].\n\nWhat has to be done for this to work is, to write a script that converts bower.json syntax and semantics into a composer.json equivalent\nso that composer can read it and install the package accordingly. The package that is avilable via bower does not have to be adjusted for\nthis.\n\nThe same thing can be implemented for other package managers like `npm` as well.\n\n[bower registry]: http://bower.io/search/\n\n\nUsing the repository in you application\n---------------------------------------\n\n\u003e **Warning: This is an experiment! Current code is not fully working and URLs will change. Do not use it yet, this is just to describe how\n\u003e it will work when finally implemented.**\n\nAdd the repository to your composer.json:\n\n```json\n\"repositories\": [\n        {\n            \"type\": \"composer\",\n            \"url\": \"http://stuff.cebe.cc/composer-bower\"\n        }\n]\n```\n\nThe ugly URL will later be replaced with a hostname like for example `bower.packagist.org`.\n\nYou can then require:\n\n```php\n\"require\": {\n    \"bower/angular\": \"*\",\n    \"bower/jquery\": \"1.9.*\",\n    \"bower/bootstrap\": \"~3.2.0\",\n    ...\n},\n```\n\n\nUsage for the conversion script\n-----\n\n```\n./cli convert \u003e packages.json\n```\n\nor\n\n```\n./cli convert --verbose \u003e packages.json\n```\n\nNote: bower has about 15000 packages registered. This command will make `15000 * (1 + v)` request against github. (v = number of versions of a package). So it currently has a limit param on the versions and packages to fetch.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fcomposer-bower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebe%2Fcomposer-bower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fcomposer-bower/lists"}