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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

  1. MVC Pattern implementation (Model-View-Controller) in WordPress.
  2. Create API's with WordPress very fast.

Installation

  1. 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/ )

  2. Create a new theme using the installation script. Or select an already created theme (it will try to create the folder structure automatically)

  3. 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)

  1. Add WordPress roles programatically.
  2. Restrict Role Access to particular pages, posts, categories, etc.
  3. Create and manage all your custom post types in just a few lines of code.
  4. Hit 100% on the Google Page Speed test.
  5. Messaging notification system for the WordPress admin user, using the WordPress standards.
  6. Create new Visual Composer components for your theme in just 5 lines fo code.
  7. 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

PHP Build Version
Package Version
Requires php Version >=5.5.9
respect/validation Version ^1.1
jjgrainger/posttypes Version ^2.0
matthiasmullie/minify Version ^1.3
monolog/monolog Version ^1.23
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alesanchezr/wpas-wordpress-dash contains the following files

Loading the files please wait ....