WordPress Packagist
This is the repository for wpackagist.org which allows WordPress plugins and themes to be managed along with other dependencies using Composer.
More info and usage instructions at wpackagist.org or follow us on Twitter @wpackagist.
For support and discussion, please use the issue tracker above.
Usage
Example composer.json:
{
"name": "acme/brilliant-wordpress-site",
"description": "My brilliant WordPress site",
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org"
}
],
"require": {
"aws/aws-sdk-php":"*",
"wpackagist-plugin/akismet":"dev-trunk",
"wpackagist-plugin/captcha":">=3.9",
"wpackagist-theme/hueman":"*"
},
"autoload": {
"psr-0": {
"Acme": "src/"
}
}
}
WordPress core
This does not provide WordPress itself.
See https://github.com/fancyguy/webroot-installer or https://github.com/johnpbloch/wordpress.
Running Wpackagist
Installing
- Make sure you have PDO with sqlite support enabled.
- Make sure
data
is writable. Do NOT createdata/packages.sqlite
, it will be created automatically. - Run
composer install
. - Point your Web server to
web
. A.htaccess
is provided for Apache.
Updating the database
The first database fetch may easily take 30-60 minutes, be patient.
bin/cmd refresh
: Refresh the list of plugins and themes to find new and updated packages.bin/cmd update
: Update the versions for packages identified in1.
.bin/cmd build
: Rebuild all.json
files inweb/
.