Download the PHP package tjm/sy-console without Composer

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

sy-console

Symfony Console component plus dependency injection, config handling, easily configured loading of commands, STDIN as first argument, improvements to default command behavior, and other niceties.

Usage

Like most Symfony projects these days, you start with composer, requiring tjm/sy-console as a dependency. You'll create an application similar to how you would with the symfony component alone, but using the sy-console Application class and passing it configuration as an argument.

In the config file, you can set parameters, do imports, and configure services just like you would with a Symfony Standard app (although without a few of the niceties, like bundle path aliases). There is a 'tjm_console' key for configuring the app itself. This is where you set the name, version, and commands.

The commands key is an associative array, with the key being the namespace and the value being the folder or file path. If the key is numeric, then the value will be the namespaced class name of the command, and it will use the autoloader to load the class.

In Symfony 3+, you can also load classes as services, using the console.command tag, as seen in the services definition above.

Known Issues

When piping into a command, eg echo 'foo' | bin/console something, the Symfony question helper will act as if interactive is set to false, and thus will skip asking users for input, just using the default. This seems to be an issue with STDIN and PHP in general. I'm looking for a solution, but haven't found one yet. Since piping into the standard Symfony console doesn't even work, you may not notice.


All versions of sy-console with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/config Version >=4.4 <7.0
symfony/console Version >=4.4 <7.0
symfony/dependency-injection Version >=4.4 <7.0
symfony/event-dispatcher Version >=4.4 <7.0
symfony/finder Version >=4.4 <7.0
tjm/sy-dependency-injection 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 tjm/sy-console contains the following files

Loading the files please wait ....