Download the PHP package demvsystems/exec without Composer

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

exec

exec is a wrapper for the php command, which allows to build CLI commands with the help of chaining.

The Command Class

Everything starts with the Command class, which let's you create any command in the following fashion:

This would create a command, which is running the application echo with the input "Hello World" and executes it right away. For a full reference on what is possible with the Command head over to the associated wiki entry.

Asynchronous Commands

You are also able to execute a command asynchronously, by appending the method to your command. The echo example from before would look like this:

Which returns an object. With this object, you can do:

Of course the above example doesn't make much sense, because we will never get a look at the result. Therefor we can pipe the result into a file.

This will write a file called with the content of our command, as soon as it terminates. For more on asynchronous commands have a look at the wiki page.

Application

Instead of defining every app in a string, inside of the app call, you are also able to use some of the predefined apps, which wrap away some of the repetetive work. For example take the PhpApp. Normally you would build a command like this to get the PHP version:

But with the PhpApp you can get rid of the string param:

There are already some other advanced apps, which wrap away their special syntax, like the XArgsApp. For a full reference on which apps are available and how they work, have a look at the Application wiki entry.

You are also able to write your own app wrappers. Have a look at this on how to do it.


All versions of exec with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.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 demvsystems/exec contains the following files

Loading the files please wait ....