Download the PHP package richtabor/merlin-wp without Composer

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

Merlin WP

Merlin WP aims to address the tedious and exhausting WordPress theme setup and onboarding process. It makes installing a new WordPress theme, recommended WordPress plugins, Customizer settings, widgets, and demo content an exciting and gratifying user experience. Read more...

Beta & Testing

Merlin WP is currently in beta, it's not suggested to use Merlin WP in production just yet, as there's still a few kinks and features to be added. If you run into anything, raise an issue and let's work on it.

Usage

1. Add Merlin WP to your WordPress theme

First, download the latest release from the Merlin WP GitHub repository. Next, add all of the files within the release into your theme.

Now all you need to do is require the class-merlin.php class, merlin-config.php and the composer autoload files in your functions.php, like this:

In the example above, the /merlin/ directory and the merlin-config.php file are both placed within the theme's /inc/ directory location. Also, if you have TGMPA included within your theme, ensure Merlin WP is included after it.

2. Configure Merlin WP

The merlin-config.php file tells Merlin WP where the class is installed. In this config file, you can also enable the Easy Digital Downloads Software license activation step.

The config file also let's you modify any of the text strings.

3. Define your demo content import files

You'll need the following files:

Once you have those files, you can upload them to your server (recommeded), or include them somewhere in your theme. Next, define a filter in your theme to let WP Merlin know where these files are located. Depending on where you placed the import files, you have two ways to define the filter:

1. If you uploaded the import files to your server, then use this code example and edit it, to suit your file locations:

2. If you included the import files somewhere in the theme, then use this code example:

Multiple demo imports

If you have multiple demo imports, then just define multiple arrays with appropriate data. For an example of two predefined demo imports, please look at the merlin-filters-sample.php file.

Redux framework import

If you are using the Redux Framework in your theme, then you can import it as well. Please look at the merlin-filters-sample.php file for an example on how to define the Redux import files.

4. Easy Digital Downloads Software License activation

You will need to use the EDD and the EDD Software Licensing add-on to deploy this step within the setup wizard. By default this step is disabled, so you have to enable it in the merlin-config.php file (look at the the Configure Merlin WP step above).

Once all the needed settings are configured in the merlin-config.php file, the license activation step will show up, right after the child theme step.

The integration is done for the EDD licensing theme example, which you can also add to your theme. This will add a Theme license page, where the user can deactivate or check the license expiration date.

5. Add filters

Inside the package download exists a merlin-filters-sample.php file which includes examples of the different filters you may use to modify Merlin. A primary example would be to use to merlin_generate_child_functions_php filter to modify the contents of the generated child theme's functions.php file.

You may also need to filter your theme demo's home page, so that Merlin WP knows which pages to set as the home page once it's done running.

6. Debugging/log file

A log file is created in .../wp-content/uploads/merlin-wp/main.log. In the log file you will see, where something went wrong.

7. Testing

To test, you'll want to create a new standard WordPress installation and add your theme build with Merlin WP integrated. You can then use the WP Reset plugin to reset and run through more tests.

Contributions

Anyone is welcome to contribute to Merlin WP. Please read the guidelines for contributing to this repository.

There are various ways you can contribute:

  1. Raise an Issue on GitHub
  2. Send a Pull Request with your bug fixes and/or new features
  3. Provide feedback and suggestions on enhancements

License

The open source license is designed for you to use Merlin WP to build open source and personal projects. The Merlin WP open source license is GPLv3. The GPLv3 has many terms, but the most important is how it is sticky when you distribute your work publicly. From the GPL FAQ:

If you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program's users, under the GPL.

Releasing your project that uses Merlin WP under the GPLv3, in turn, requires your project to be licensed under the GPLv3.


All versions of merlin-wp with dependencies

PHP Build Version
Package Version
Requires proteusthemes/wp-content-importer-v2 Version ^2.1.0
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 richtabor/merlin-wp contains the following files

Loading the files please wait ....