wp-papi / papi
WordPress Page Type API with custom fields
Installs: 29 428
Dependents: 1
Suggesters: 0
Security: 0
Stars: 263
Watchers: 25
Forks: 32
Open Issues: 13
Type:wordpress-plugin
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- behat/behat: ^2.5
- frozzare/wp-test-suite: ^1.0
- wp-coding-standards/wpcs: ^0.11
- 3.x-dev
- dev-master / 3.3.x-dev
- v3.2.0
- v3.2.0-beta2
- v3.2.0-beta1
- v3.1.19
- v3.1.18
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.1.0-rc1
- v3.1.0-beta2
- v3.1.0-beta1
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-beta1
- 2.x-dev
- v2.4.18
- v2.4.17
- v2.4.16
- v2.4.15
- v2.4.14
- v2.4.13
- v2.4.12
- v2.4.11
- v2.4.10
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- 1.x-dev
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/npm_and_yarn/word-wrap-1.2.4
- dev-dependabot/npm_and_yarn/glob-parent-and-watchpack-5.1.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-snyk-fix-76fe3b9445b7acb801c11309fa4aa9a6
- dev-snyk-fix-961d3ef7b245d9b718617e3089cac082
- dev-fix-docker-test
- dev-github-workflow
- dev-snyk-fix-e44feca201408da844bd3caf88b693f4
- dev-snyk-fix-cc4ed46f7ae3011865fc636594c87029
- dev-feature/gutenberg
- dev-feature/data-table
- dev-feature/new-design
- dev-feature/slug
- dev-feature/archive
- dev-feature/network-type
- dev-feature/pure-property
- dev-feature/circleci
- dev-feature/add-new-tabs
- dev-feature/front-page
- dev-feature/classicpress
- dev-feature/module-property
- dev-feature/new-tabs
This package is auto-updated.
Last update: 2024-12-19 01:25:34 UTC
README
master
is unsafe.3.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 you 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!
A message from the author
v3.2.0 will likely be the last release I plan to work on as the core maintainer of Papi since my focus has shifted from WordPress to doing more JavaScript and Go projects. I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. I will still be around answering questions and helping any new maintainers. Some bug fixes and/or pull request may be added (but no new versions) since me and my colleagues use Papi internally and will be continuing doing it.
Installation
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": "^^7.4", "wordpress": "^4.6", "wp-papi/papi": "^3.2" }
Build CSS and JavaScript
Install dependencies:
make deps
Build CSS:
make css
Build JavaScript:
make js
Testing
Visit the readme file for testing.
Coding style
You can check if your contribution passes the styleguide by installing PHP CodeSniffer and running the following in your Papi directory:
make lint:php
Contributing
Visit the contributing file.
Security
If you discover a security vulnerability within this package, please send an e-mail to Fredrik Forsmo at security@frozzare.com. All security vulnerabilities will be promptly addressed.
License
MIT © Fredrik Forsmo