Download the PHP package cdev/environment-local without Composer

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

cdev-environment-local

The Local environment plugin for cdev

Over the past few months we have had some hiccups with Docker and memory usage etc causing some strange issues. Environments have also been very slow to run lately.

With the last AMPPS update being over a year ago and the latest supported PHP version being 7.1 it's difficult to test certain sites fully as some newer sites are currently using PHP 7.2.

The cdev Local environment plugin aims to help this by using the existing local modules Apache, PHP and MariaDB (a mysql drop in replacement). It aims to improve the workflow however due to the nature of it there are a number of very in depth dependencies required in order to get it to work.

Installing

Ensure that you are using the most recent version of cdev or at the very least >= 1.1.16.

You can install the plugin with the two commands below:

cdev plugin:add-repository pear/config vcs https://github.com/FelixAuer/Config.git

cdev plugin:install cdev/environment-local

The first command allows a dependency for cdev local to be installed and the second allows for the actual plugin to be installed.

Dependencies

The plugin ships with an install.sh script that should get you up and running with the above. You can run it with the following command:

The following dependencies are required in order to get cdev Local to run properly. The plugin is still in early stages at the moment with a number of features absent but the basics of running your dev environment are available (starting, stopping and nuking, and database imports).

Here is a list of the requirements in order to get cdev Local running:

Configuration

Once the above dependencies have been installed correctly and the plugin has been installed via the Installing section above you can run the cdev configure command inside the directory you are setting up. This should now show a local plugin alongside the docker one. You can follow the steps as normal with a few extra options:

The rest of the process is similar and cdev local will setup a new apache host in the following format [project_name].dev.com.

Troubleshooting

Whilst working on this and doing a database import originally I got a MySQL has gone away error. In order to fix this you can do the following:

On AMPPS I had this setting set to 256M but 64 seemed to solve it for my particular environment.


All versions of environment-local with dependencies

PHP Build Version
Package Version
Requires pear/config Version dev-trunk
symfony/finder Version ^3.3
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 cdev/environment-local contains the following files

Loading the files please wait ....