Download the PHP package clubdeuce/wpmvc-redux without Composer

On this page you can find all versions of the php package clubdeuce/wpmvc-redux. 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 wpmvc-redux

wpmvc-redux

Scrutinizer Code Quality Build Status

An MVC base library for WordPress plugin and theme development. Provides typed base classes for models, custom post types, and taxonomies, following PSR-4 autoloading standards.

Requires PHP 8.3+

Installation


Architecture


Usage

Application

Extend Application to create your plugin entry point. Implement HasActions to register WordPress hooks automatically on construction.

A ?ContainerInterface $container property is available for dependency injection. Assign it via set_state() or a subclass constructor.


Post model

Extend Base\Post to wrap a custom post type. All WP_Post properties are available via typed accessors — no raw property access needed.

Template rendering

the_template() locates and renders a .php template file. Lookup order: child theme → parent theme → module dir (if module_dir() is overridden).

Inside the template, $item is automatically available as a reference to the model instance, alongside any variables passed in the second argument:

Override templates_subdir() to change the theme subdirectory (defaults to templates, or WPLIB_TEMPLATES_SUBDIR if defined). Override module_dir() to enable a plugin-level template fallback.


Term model

Extend Base\Term to wrap a taxonomy term.


Post_Type controller

Extend Controllers\Post_Type (abstract) to register a custom post type. Define const ?string POST_TYPE and set $arguments.

slug() returns the POST_TYPE constant value.


Taxonomy controller

Extend Controllers\Taxonomy (abstract) to register a custom taxonomy.

slug() returns the TAXONOMY constant value.


HasActions interface

Implement Contracts\HasActions on any Application subclass that needs to register hooks. The constructor calls add_actions() automatically when the interface is detected.


Development

Requirements

Install dependencies

Run tests

Static analysis

Configuration is in phpstan.neon.dist. Create a local phpstan.neon for environment-specific overrides — do not edit phpstan.neon.dist directly.


PSR-4 namespaces

Namespace Directory
Clubdeuce\Wpmvc_Redux src/
Clubdeuce\Wpmvc_Redux\Tests tests/

License

MIT — see LICENSE.


All versions of wpmvc-redux with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
php-di/php-di Version ^7.1
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 clubdeuce/wpmvc-redux contains the following files

Loading the files please wait ...