Download the PHP package alesanchezr/wpas-wordpress-dash without Composer
On this page you can find all versions of the php package alesanchezr/wpas-wordpress-dash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alesanchezr/wpas-wordpress-dash
More information about alesanchezr/wpas-wordpress-dash
Files in alesanchezr/wpas-wordpress-dash
Package wpas-wordpress-dash
Short Description WordPress development on steroids
License MIT
Informations about the package wpas-wordpress-dash
WPAS-Wordpress-Dash
Are you a WordPress developer? Then you are probably struggling with the same stuff that I use too truggle every day.
- MVC Pattern implementation (Model-View-Controller) in WordPress.
- Create API's with WordPress very fast.
Installation
-
Require the library with composer (NOTE: You must be in your Wordpress directory before running this command. The installer will attempt to create your theme in ./wp-content/
) -
Create a new theme using the installation script. Or select an already created theme (it will try to create the folder structure automatically)
- Update the WPASController according to your needs in functions.php
Note: This library expects your theme to load the vendor/autoload.php file in your functions.php. A good way of doing that is:
If you are working with Flywheel hosting (and/or Flywheel Local), you will need to require the path in the following way:
This is due to the fact that their folder structure separates your content and plugins from the root Wordpress install after you push your site live.
Working with the MVC Pattern
The Models (Custom Types)
Instanciate the PostTypeManager:
Define your type in functions.php
Define your type class in the types folder:
Note: you HAVE to extend from the BasePostType class, that is not optional.
Continue reading about the models
The Controllers
Create your Controller classes and bind them to your views, pages, categories, posts, etc.
Our Course.php controller class will look like this:
Continue reading about implementing MVC on your wordpress
Debugging
On you wo-config.php file add the following constant:
It will add a top bar with the current template being used.
Upcomming Experimental Features (Not Stable)
- Add WordPress roles programatically.
- Restrict Role Access to particular pages, posts, categories, etc.
- Create and manage all your custom post types in just a few lines of code.
- Hit 100% on the Google Page Speed test.
- Messaging notification system for the WordPress admin user, using the WordPress standards.
- Create new Visual Composer components for your theme in just 5 lines fo code.
- Extend Gravity Forms functionality.
Author
Alejandro Sanchez
Repository website: https://github.com/alesanchezr/wpas-wordpress-dash
About me: alesanchezr.com
All versions of wpas-wordpress-dash with dependencies
respect/validation Version ^1.1
jjgrainger/posttypes Version ^2.0
matthiasmullie/minify Version ^1.3
monolog/monolog Version ^1.23