master
is unsafe.2.x
is the stable branch.
Papi has a different approach on how to work with fields and page types in WordPress. The idea is coming from how Page Type Builder in EPiServer works and has been loved by the developers.
So we though why don’t use the same approach in WordPress? Papi is today running in production and has been easy to work with when it came to add new fields. Papi don’t have any admin user interface where should add all fields, we use classes in PHP, where one class represents one page type and in your class you add all fields you need. It’s that easy!
If you're using Composer to manage WordPress, add Papi to your project's dependencies. Run:
composer require wp-papi/papi
Or manually add it to your composer.json
:
"require": {
"php": ">=5.4.7",
"wordpress": "~4.2",
"wp-papi/papi": "~2.0"
}
$ vagrant up
- Log in to the virtual machine with
$ vagrant ssh
- Run
$ composer install
- Run
$ phpunit
- Done!
Papi has a phpcs.rulset.xml
so you can check the source code coding style.
$ gulp phpcs
// or
$ vendor/bin/phpcs -s --extensions=php --standard=phpcs.ruleset.xml src/
Visit the contributing file.
MIT © Fredrik Forsmo