Download the PHP package teknoo/reactphp-symfony without Composer

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

Teknoo Software - ReactPHP Symfony Bridge

Installation & Requirements

To install this library with composer, run this command :

composer require react/http:dev-master
composer require teknoo/reactphp-symfony

This library requires :

* PHP 7+
* Composer
* Symfony 3.2+
* ReactPHP 0.6+

Execution

Via the Symfony Console :

#Env prod
bin/console reactphp:run -i 0.0.0.0 -p 8080

#End dev
bin/console reactphp:run -i 0.0.0.0 -p 8080 -e dev

Via a PHP file :

#!/usr/bin/env php
<?php

use React\EventLoop\Factory as LoopFactory;
use React\Socket\Server as SocketServer;
use React\Http\Server as HttpServer;
use Teknoo\ReactPHPBundle\Bridge\RequestBridge;
use Teknoo\ReactPHPBundle\Bridge\RequestListener;
use Teknoo\ReactPHPBundle\Service\DatesService;
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;

require __DIR__.'/../app/autoload.php';
if (\file_exists(__DIR__.'/../var/bootstrap.php.cache')) {
    include_once __DIR__ . '/../var/bootstrap.php.cache';
}

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();

$requestBridge = new RequestBridge(
    $kernel,
    new DatesService(),
    new HttpFoundationFactory(),
    new DiactorosFactory()
);
$requestListener = new RequestListener($requestBridge);

//React Loop
$loop = LoopFactory::create();
//Create front socket server
$socket = new SocketServer(8080, $loop);

//Enable HTTP server
$server = new HttpServer($requestListener);
$server->listen($socket);

//Start loop and so the server
$loop->run();

Credits

Richard Déloge - [email protected] - Lead developer. Teknoo Software - http://teknoo.software

About Teknoo Software

Teknoo Software is a PHP software editor, founded by Richard Déloge. Teknoo Software's DNA is simple : Provide to our partners and to the community a set of high quality services or software, sharing knowledge and skills.

License

ReactPHP Symfony Bridge is licensed under the MIT License - see the licenses folder for details

Contribute :)

You are welcome to contribute to this project. Fork it on Github


All versions of reactphp-symfony with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
symfony/symfony Version ~3.0
symfony/console Version ~3.0
symfony/psr-http-message-bridge Version ~1.0
react/http Version ^0.7.0
riverline/multipart-parser Version ~1.1
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 teknoo/reactphp-symfony contains the following files

Loading the files please wait ....