Download the PHP package codenamephp/installer without Composer

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

Installer

Packagist Version Packagist PHP Version Support Lines of code GitHub code size in bytes CI Packagist Downloads GitHub

Installer that uses template folders to setup projects, e.g. from a github template repository

Installation

Easiest way is via composer. Just run composer require codenamephp/installer in your cli which should install the latest version for you.

Usage

The idea is to have a start script in a subfolder. The script itself just sets up the installer and the dependencies and by that also what the installer is actually doing. The reason to put it in its own folder is so the files are clearly separated from the rest of the files so the installer can easily remove itself.

First require the installer package using composer so we can start using its classes.

Best practice is to create a .installer folder and an install.php. The following example will render the files in the .installer/templates folder into the parent folder replacing all eisting files and replacing all variables in the templates with the variables form the array. Once this is done the .installer folder is deleted.

There's also variable replacement in paths. In this example, a framed replacer is used so common folder names that also might appear as variable are not replaced by accident (like "vendor" in this example). The default for the prefix and suffix is '' so if a file `.installer/templates/files/vendor/componentName__.jsonwould exist it would end up infiles/codenamephp/some.component.json` so you can change the final structure on the fly (e.g. have a folder structure that matches your namespace).

.installer/install.php:

.installer/templates/composer.json:

.installer/templates/README.md:

This example could be part of a GitHub template repository. After the repository was created on GitHub the repo can be cloned to local and after running composer install && php .installer/install.php && composer update the repo would be ready for development.

This example can be adapted to the repository needs. Since the installer itself only executes steps custom steps can be added in the repository by implementing the \de\codenamephp\installer\steps\iStep interface and adding it to the installer.


All versions of installer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
twig/twig Version ^3.0
symfony/filesystem Version ^6.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 codenamephp/installer contains the following files

Loading the files please wait ....