Git Product home page Git Product logo

papi's Introduction

Papi

Papi

Build Status Coverage Status Latest Version License

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!

Visit Papi’s project page

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": ">=5.4.7",
  "wordpress": "~4.2",
  "wp-papi/papi": "~2.0"
}

Testing

  1. $ vagrant up
  2. Log in to the virtual machine with $ vagrant ssh
  3. Run $ composer install
  4. Run $ phpunit
  5. Done!

Coding style

You can check if your contribution passes the styleguide by installing PHP CodeSniffer and running the following in your Papi directory:

$ vendor/bin/phpcs -s --extensions=php --standard=phpcs.xml src/

Contributing

Visit the contributing file.

License

MIT © Fredrik Forsmo

papi's People

Contributors

frozzare avatar vinkla avatar rasmusbe avatar s3rgiosan avatar gitter-badger avatar mykhailo-petrenko avatar nlemoine avatar

Watchers

Yashi Lanka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.