Code Monkey home page Code Monkey logo

rest-kit's Introduction

wp-kit/theme

wp-kit is a micro RAD (Rapid Application Development) solution for Wordpress.

Installation

Download Composer and install using these commands

You need to be using at least PhP 7.4, make sure it's installed, and make sure Composer is using the correct PhP binary:

php -v
composer -vvv about

Both should refer to a version >= PhP 7.4 if your local environment is setup correctly.

cd /path/to/wp-content/themes
composer create-project wp-kit/theme theme --prefer-dist
cd theme
npm i
npm run build

When should you use wp-kit/theme?

If you are looking for an RAD for Wordpress you may have come across Themosis Framework and Assely.

wp-kit/theme is very much like these frameworks but has limited features; the benefit of using wp-kit/theme instead of themosis/theme and assely/assely is that you do not need to install any respective plugin framework as all the work in done in the theme and imported via Composer.

You should use Themosis or Assely is you require any handling of following:

  • Routes
  • Middleware
  • Authentication
  • Metaboxes
  • Custom Fields

If you do not need these features then wp-kit/theme could be for you as it comes packaged with several Themosis and Assely features such as:

  • ServiceProvider Config
  • PostType Registration
  • Taxonomy Registration
  • Invoke Controllers on Conditions
  • View Handling

wp-kit/theme also comes with further features such as:

  • Shortcode Registration
  • Shortcode View Handling
  • Twig (not in Assely)

Get Involved

To learn more about how to use wp-kit check out the docs:

View the Docs

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

  • Reporting a bug issue
  • Suggesting features
  • Sending a pull request with code fix or feature
  • Following the project on GitHub
  • Sharing the project around your community

For details about contributing to the framework, please check the contribution guide.

Requirements

Wordpress 5+

PHP 7.4+

Composer

Security Vulnerabilities

If you discover a security vulnerability within WP Kit, please send an e-mail to [email protected] or raise an issue on this repo. All security vulnerabilities will be promptly addressed.

License

wp-kit/theme is open-sourced software licensed under the MIT License.

rest-kit's People

Contributors

mattpilott avatar terence1990 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

rest-kit's Issues

Shorten path to field data in blocks

Minor thing that would neaten things up;

This is a dot notation path im using for real:
data.attributes.data.testimonials

Bit weird isn't it, in lazyblock land the field data is in the top level data:
data.testimonials

Rest response does not respect ACF output option

If i have a block with a field like link, and i set the output to url it comes through as an array, which is the default.

If i have a block with a field like post object and i set the output to post object it comes through as an id which is not the default.

This is confusing and i'm unsure why these out puts differ

Add binary to easily copy or merge rest-kit releases and updates

Add a binary in composer.json to wpkit/utils which developer can run at any time to copy rest-kit to theme folder (for either Wordpress or Bedrock) and if rest-kit already exists rebase current files to the version that was previously deployed and then merge the latest version for new changes.

Update RestKit Defaults

Yo,

Should we make restkit default postypes to
'show_in_rest' => true
along with
'rewrite' => [ 'slug' => $this->, 'with_front' => false ]

Option to not output admin block markup/styles

Currently when you make a block the code written for the block in the backend is stored as the_content, this means it weighs down the rest response. There are certainly a couple things we can learn from lazyblocks, they give you an option to only have this markup shown in the backend (or frontend, or both)

See screen to see what im looking to avoid

Screenshot 2020-07-22 at 16 47 09

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.