Scafall
A WordPress scaffolding plugin.
★ 1stars
1composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lambry/scafall/archive/refs/heads/master.zipAlso on Packagist as lambry/scafall:
composer require lambry/scafallFrom the readme
Scafall
A little plugin that makes scaffolding post types, taxonomies, user roles, options, meta boxes, rest endpoints and frontend routes easier.
Install: composer require lambry/scafall
Post Types
Taxonomies
User Roles
Options
Meta Boxes
The field types available for use within options pages and meta boxes are: text, number, email, date, range, url, password, textarea, editor, select, radio, checkbox, toggle, upload, colour and info.
Rest endpoints
When using a controller, the default method called will match the HTTP request method.
For example $rest-get('/books', BookController::class) would call a get method on the BookController class.
Routes
To use the put, patch and delete methods on frontend routes, you'll need to add a hidden field named method with a value of PUT, PATCH or DELETE.
Notes: requires PHP 8.0+