Coder Social home page Coder Social logo

thedigitaloctopus / wp-fields Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xedinunknown/wp-fields

0.0 1.0 0.0 167 KB

ChriCo Fields is a Composer package (not a plugin) that allows to generate form fields in WordPress.

License: MIT License

PHP 100.00%

wp-fields's Introduction

ChriCo WP-Fields Latest Stable Version Project Status Build Status License

ChriCo WP-Fields is a Composer package (not a plugin) that allows to generate form fields in WordPress.


Minimum requirements and dependencies

ChriCo Fields requires:

  • PHP 7+
  • WordPress latest - 0.1
  • Composer to be installed

When installed for development, via Composer, ChriCo Fields also requires:

  • "phpunit/phpunit" (BSD-3-Clause)
  • "brain/monkey" (MIT)

Docs

Documentation can be found in docs/.


Frequently Asked Questions

Why are you not just using existing packages like the Symfony Forms or Zend Form?

That's a good question! As already mentioned above, WordPress has different pages and scenarios where to use form fields. Both packages are excellent and i worked a lot with them in past.

But: They need a ton of dependencies.

As example, if you're going to use Symfony Forms, you've to use other Symfony Packages like Event Dispatcher, Intl, Options Resolver, Property Access. And that's not all, if you're serious, you'll probably end up using as well Symfony Validation, Symfony CSRF, Twig. And that's the whole point..when we load half of Symfony and we're not far away from including Doctrine as well...why do we still use WordPress?

What about WordPress Field-Plugins like Advanced Custom Fields?

I guess you're wrong here. ;-)

What about the upcoming WordPress Fields API?

Nothing. There's a lot of weird and quirky code in it. No interfaces, no real abstraction, no strict return types, PHP 5.2, missing Unit Tests, ... the list is endless, so i'll stop here.

In fact, the API will eventually appear in WordPress in near - or far - future. But until then, everything is fine. If the API is really released, i'll adapt this code to fit on top of the Fields API.


License

Copyright (c) 2017 ChriCo.

ChriCo Fields code is licensed under MIT license.

   _____ _          _  _____      
  / ____| |        (_)/ ____|     
 | |    | |__  _ __ _| |     ___  
 | |    | '_ \| '__| | |    / _ \ 
 | |____| | | | |  | | |___| (_) |
  \_____|_| |_|_|  |_|\_____\___/ 
                                  

wp-fields's People

Contributors

chrico avatar widoz avatar

Watchers

 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.