Download the PHP package drinksco/console-ui-bundle without Composer

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

Console UI Bundle

With great power comes great responsibility.

An interactive, real-time User interface for the Symfony Console.

🚧 We are at a developing stage, every contribution in every aspect will be welcomed and properly attributed.

Tested OSs

If you try it, you are encouraged to make a GitHub issue to let us know your experience :

Features

Todos

PHP

TypeScript

Dependencies

System

We are working in a docker version to install system dependencies in a single command

App Build

Socket Server

Queue System

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Applications that use Symfony Flex

We have not done any Flex recipe yet, look at the Applications that don't use Symfony Flex section for the bundle configuration.

Open a command console, enter your project directory and execute:

If using Symfony Docker: Jump to step 4: Configure webpack.

If using local configuration check how to set up Mercure Hub in "Install Symfony Mercure Component and Hub" section.

Applications that don't use Symfony Flex

Step 1: Configure dependencies

Install Symfony Webpack Encore Bundle

Webpack Encore Bundle allows us to use modern Front-end languages inside our PHP applications. Follow the official docs to get it up and running.

Install Symfony Mercure Component and Hub

Mercure is a high performance socket server, it allows us to get realtime console output in the UI. Follow the official docs to get it up and running.

Using flex, Mercure will configure automatically for us.

Using the Symfony docker package we can jump to the next step.

Mercure requires a dedicated Hub. You can use an open source version from Mercure.Rocks.

Install it from release page https://github.com/dunglas/mercure/releases and at the moment we will choose the legacy version for your SO.

Download the binary and put it in the project root.

Why Mercure? It allows us to communicate between background running commands and frontend. We can search another "more friendly" alternative as running commands inside an 'http' request, but it will directly reduce the console tool performance or it will not be possible to run long processes.

Install Forma-Pro Enqueue Bundle

Enqueue Bundle allows us to run commands in its own processes, when combined with Mercure Sockets it gives us the real-time execution flow.

Follow the official docs to get it up and running.

Then install the Filesystem Transport it will do rest of the work 😉.

Step 2: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

While there is not recipe yet, we need to declare some environment variables for the Console UI

Do not forget to set your absolute path with write read and write permissions for the queue dsn. Also, double-check the Mercure environment variables for host or port mismatches

Step 3: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

Step 4: Configure Webpack

Console UI Web component should be updated to npm

Then enable TypeScript support. Lastly add an entry for the console-ui web component.

While we are not available console-ui component via npm, we need to install and configure it.

in the package.json file:

Install NPM dependencies

Then build the Web Components

Step 5: Import Routes

Clear cache to load newly added routes.

Step 6: Execute Electron App

Now, we have configured everything 😉, it is time to run our Symfony console UI🚀

If you run into issues or want to give us feedback, you are encouraged to make a GitHub issue or a bug report.


All versions of console-ui-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/mercure Version ^0.6.1
enqueue/enqueue-bundle Version ^0.10.16
symfony/framework-bundle Version ^6.0
symfony/console Version ^6.0
symfony/webpack-encore-bundle Version ^1.15
symfony/twig-bundle Version ^6.0
symfony/yaml Version ^6.0
webmozart/assert Version ^1.11
symfony/process Version ^6.0
enqueue/fs Version ^0.10.16
lcobucci/jwt Version ^4.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 drinksco/console-ui-bundle contains the following files

Loading the files please wait ....