Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fancyguy/webroot-installer
Composer Installer for packages that live in the webroot of a project.
https://github.com/fancyguy/webroot-installer
composer composer-installer php
Last synced: 5 days ago
JSON representation
Composer Installer for packages that live in the webroot of a project.
- Host: GitHub
- URL: https://github.com/fancyguy/webroot-installer
- Owner: fancyguy
- License: other
- Created: 2013-01-29T22:43:20.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T14:06:23.000Z (over 6 years ago)
- Last Synced: 2024-10-29T15:18:48.710Z (3 months ago)
- Topics: composer, composer-installer, php
- Language: PHP
- Size: 9.77 KB
- Stars: 125
- Watchers: 8
- Forks: 22
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Webroot [Composer](http://getcomposer.org) Library Installer
[![Build Status](https://travis-ci.org/fancyguy/webroot-installer.png?branch=master)](https://travis-ci.org/fancyguy/webroot-installer)
This is for PHP packages that support composer to configure in their `composer.json`. It will
allow a root package to define a webroot directory and webroot package and magically install it
in the correct location.## Example `composer.json` File
``` json
{
"name": "fancyguy/www-fancyguy-com",
"description": "Package to build www.fancyguy.com",
"authors": [
{
"name": "Steve Buzonas",
"email": "[email protected]"
}
],
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress/wordpress",
"type": "webroot",
"version": "4.5.1",
"dist": {
"type": "zip",
"url": "https://wordpress.org/wordpress-4.5.1-no-content.zip"
},
"require": {
"fancyguy/webroot-installer": "^1.0"
}
}
}
],
"require": {
"wordpress/wordpress": "4.5.*"
},
"extra": {
"webroot-dir": "content",
"webroot-package": "wordpress/wordpress"
}
}
```This would install the defined `wordpress/wordpress` package in the `content` directory of the project.
## Warning
Setting the `webroot-dir` to a non-empty directory will delete the contents in most cases. It is recommended to use a clean target within your project directory.