Download the PHP package klyp/wordpress-core-installer without Composer

On this page you can find all versions of the php package klyp/wordpress-core-installer. 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 wordpress-core-installer

klyp/wordpress-core-installer

A Composer plugin that installs WordPress core into a directory of your choice instead of vendor/. It's used by klyp/wordpress, and works with any package of type wordpress-core.

Usage

You normally don't require this plugin directly, because klyp/wordpress already depends on it. You only need to allow it and choose the install directory:

composer install then puts WordPress in wp/.

Choosing the directory

extra.wordpress-install-dir in your project's composer.json can be:

Value Result
not set wordpress/
"wp" wp/
"public/wp" public/wp/
{ "klyp/wordpress": "wp" } a map from package name to directory, for projects with more than one wordpress-core package. Packages that aren't listed go to wordpress/.

Only the root project decides the directory. Settings in a dependency's own composer.json are ignored.

Safety checks

Composer empties the install directory whenever WordPress is installed, updated or removed. To make sure that can never take other files with it, the plugin refuses to install, with a clear error, when the directory is:

Replacing one wordpress-core package with another in the same directory (for example, switching a project to klyp/wordpress) is fine. The old package is removed before the new one is installed.

Use a dedicated subdirectory such as wp. Keep your own code (themes, plugins, uploads, wp-config.php) outside it, because it's replaced on every core update.

If you change wordpress-install-dir on an existing project, delete the old directory yourself. Composer only knows the new one, so the old core files stay on disk, and they stay reachable over the web if they're under the web root.

Switching from another WordPress core installer

Only one Composer plugin should handle the wordpress-core type. When you switch a project to this plugin:

  1. Remove any other WordPress core installer from require and config.allow-plugins.
  2. Allow klyp/wordpress-core-installer.
  3. Run composer update with -W for the core package and the installers.

Your wordpress-install-dir stays the same.

Requirements

Development

The tests build throwaway projects with fixture wordpress-core packages. They check where core gets installed, that removing it deletes only its own directory, and that every unsafe directory is refused. CI runs them on PHP 5.6 to 8.5 (.github/workflows/test.yml).

The scripts require bash, jq and composer. Set KEEP_WORK=1 to keep the throwaway projects for debugging.

Releasing

Tag master with a version (1.0.0, 1.0.1, …) and push the tag. Packagist picks up new tags through its GitHub integration.

License

GPL-2.0-or-later. See LICENSE.


All versions of wordpress-core-installer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
composer-plugin-api Version ^2.0
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 klyp/wordpress-core-installer contains the following files

Loading the files please wait ...