Download the PHP package rikudou/installer without Composer

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

Rikudou Installer

This composer plugin allows you to ship your configuration with your package for supported project types.

As soon as this package is installed in your project, it takes care of configuring your packages.

Installation

composer require rikudou/installer

Using

If you want to use the installer in your package, just add it as a dependency and create the configuration directory .installer.

The .installer directory has the following structure:

.installer/[project-type-directory]/[operation-type]

Project types

Currently only Symfony 4 project type is supported, but you can define your own types in your package (more on that below).

Symfony 4 project type

Overriding project type composer.json

If you want to set a project type for your project while it cannot be detected, you can set the extra.rikudou.installer.project-type in your composer.json, the value should be the machine name of desired project type.

If handler for the type does not exist, it will be ignored and the detection will still take place.

Example:

Note: JSON does not support comments, if you copy the above snippet, remove them

Operation types

Copy files operation

Everything from the operation dir (files) will be copied to the root directory of project.

On package uninstall any file that is identical in content to the one defined in package will be removed and any empty directory defined in directory structure will be removed.

Env variables operation

Define your env variables in .env file and the content will be copied to .env, .env.dist and .env.example files in project root (if these files exist).

On package uninstall the environment variables will be deleted from the affected files.

Bundle register operation

Write a bundle config that will be appended to bundles.php file in Symfony.

On package uninstall the bundle configuration will be removed.

Example content:

Disable Rikudou Installer

You can disable Rikudou Installer for your project via composer.json configuration.

Example:

Note: JSON does not support comments, if you copy the above snippet, remove them

Define custom project type

If you want to support non-default project type, in your package define php classes in directory .installer/project-types that implement Rikudou\Installer\ProjectType\ProjectTypeInterface

The interface methods (and what it should return) are described in PHPDoc in the interface.

The class name or the namespace of defined types does not matter, but you should avoid having non-namespaced classes as there could be a name conflict.


All versions of installer with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
composer-plugin-api Version ^1.1
rikudou/reflection-file Version ^1.2.1
ext-json Version *
symfony/yaml Version ^4
rikudou/array-sort Version ^1.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 rikudou/installer contains the following files

Loading the files please wait ....