uiii / processwire
Fund package maintenance!
flattr.com/@uiii
paypal.me/richardjedlicka
Installs: 3 726
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 1
Open Issues: 0
Language:Shell
Type:pw-core
pkg:composer/uiii/processwire
Requires
- uiii/pw-core: >=2.2
README
Using this package you can easily install ProcessWire to your project.
This works differenty from the official processwire/processwire composer package,
where the official package just places the PW copy into vendor/processwire/processwire, this installs the PW directly
to the project's root (thanks to uiii/pw-core).
Why all this?
It is not easy (if event possible) to run PW instance with wire and site folders in different locations.
So if the PW is under vendor directory your site folder must too.
This package solves this by changing the PW install location to project's root next to your site folder.
Usage
Just set the required PW version as composer dependency:
composer require uiii/processwire:<version>
Completely new installation
If you haven't set up the PW yet (
site/assets/installed.phpdoesn't exist), all files required for initial PW setup will be installed. Afterwards continue the setup in the browser.
Already existing
sitefolderIf you have set up PW before and you have your
sitefolder already present, only the files required for running the site will be installed (wire,index.php,.htaccess).Old
index.phpand.htaccesswill be backuped with.bakextension
Now when you deploy your site, install all your dependencies (PW included) with composer install.
NOTE: It is reasonable to config your VCS to ignore the
wiredirectory.
Updating existing installation
Updating is easy, just require new version: composer require uiii/processwire:<new-version>
Set different install path
By default PW is installed in the root directory (next to the composer.json file). You change the install path by setting the pw-install-path extra parameter in composer.json:
"extra": { "pw-install-path": "path/to/install" }