Download the PHP package blacktrs/modern-wp without Composer

On this page you can find all versions of the php package blacktrs/modern-wp. 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 modern-wp

Overview

ModernWP is an enhanced WordPress boilerplate based on the pure Symfony Framework and Roots Bedrock.

ModernWP is created for WordPress-based projects that need better structure and tooling. You can use almost everything from Symfony and WordPress at the same time.

This boilerplate could be used for migrating big codebase from classic heavy WordPress-style projects to modern approaches without significant breaking loss of backward compatibility.

Features

Requirements

Installation

Docker

Potential docker issues

Local environment

Custom hostname

Local HTTPS

By default, https works for localhost

If needed to generate specific SSL certificate for your custom hostname run following command

Documentation

Configuration

By default, configuration should be considered in confing/**.yaml files.

The all configuration parameters in SCREAMING_SNAKE_CASE will be converted to php const, so WordPress can read it as configuration constant.

For example, following parameters will be converted to PHP constant WP_DEBUG with true value. More examples could be found in config/packages/app.yaml

Controller types

You can use 2 types of controllers:

Rest API Controllers

Basically any non-template controller will be interpreted as Rest API controller. Examples could be found in src/Controller/Rest directory

Template Controllers

For example, if needed controller for any page with a post-type page then declaring the route will look:

It is possible to declare a route for any WordPress template

More examples could be found in src/Controller/Frontent directory

More documentation about controllers in symfony documentation

Templating

By default, templates should be in twig format and stored int templates directory. More details in symfony documentation

Hooks

Declarations of the new handlers for WordPress actions and filters are recommended to add in Kernel::registerHooks() method

It is also recommended to use as a handler for every hook separate invokable service classes. To prevent Kernel class bloating it is better to store hook declarations as groups in the different classes.

Plugins

Plugins can be added from the WordPress admin dashboard or as Composer packages

Working with database

For convenient work with the database it is better to use Doctrine ORM

Out-of-the-box in src/Entity are generated set of entities for default WP tables.

Boilerplate extending

To achieve deeper configuration please edit following files:

Frontend assets

It is recommended to use Symfony Encore and Symfony Asset bundles to build and use frontend assets.

Compiled assets better to store in public directory (e.g. public/build)

Links


All versions of modern-wp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer/installers Version ^1.12
roots/bedrock-autoloader Version ^1.0
roots/bedrock-disallow-indexing Version ^2.0
roots/wordpress Version ^6.3
symfony/http-foundation Version ^6.3
symfony/cache Version ^6.3
ext-mysqli Version *
symfony/asset Version ^6.3
symfony/finder Version ^6.3
symfony/config Version ^6.3
symfony/routing Version ^6.3
symfony/dependency-injection Version ^6.3
symfony/dotenv Version ^6.3
symfony/yaml Version ^6.3
symfony/console Version ^6.3
symfony/http-kernel Version ^6.3
symfony/framework-bundle Version ^6.3
symfony/monolog-bundle Version ^3.8
symfony/flex Version ^2.2
doctrine/doctrine-bundle Version ^2.7
doctrine/doctrine-migrations-bundle Version ^3.2
doctrine/orm Version ^2.12
symfony/proxy-manager-bridge Version ^6.3
symfony/doctrine-messenger Version ^6.3
symfony/expression-language Version ^6.3
symfony/form Version ^6.3
symfony/http-client Version ^6.3
symfony/intl Version ^6.3
symfony/mailer Version ^6.3
symfony/mime Version ^6.3
symfony/notifier Version ^6.3
symfony/process Version ^6.3
symfony/security-bundle Version ^6.3
doctrine/annotations Version ^2.0
phpdocumentor/reflection-docblock Version ^5.3
phpstan/phpdoc-parser Version ^1.23
symfony/property-access Version ^6.3
symfony/property-info Version ^6.3
symfony/serializer Version ^6.3
symfony/string Version ^6.3
symfony/translation Version ^6.3
symfony/twig-bundle Version ^6.3
twig/extra-bundle Version ^2.12|^3.0
twig/twig Version ^2.12|^3.0
symfony/validator Version ^6.3
symfony/web-link Version ^6.3
symfony/webpack-encore-bundle Version ^1.17
blacktrs/symfony-wp-bundle Version ^1.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 blacktrs/modern-wp contains the following files

Loading the files please wait ....