Download the PHP package glzjin/laravel-s without Composer

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

LaravelS - standing on the shoulders of giants

🚀 Speed up Laravel/Lumen by Swoole, 'S' means Swoole, Speed, High performance.

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Scrutinizer Code Quality Code Intelligence Status

中文文档

Features

Requirements

Dependency Requirement
PHP >= 5.5.9
Swoole >= 1.7.19 The Newer The Better No longer support PHP5 since 2.0.12
Laravel/Lumen >= 5.1
Gzip[optional] zlib, be used to compress the HTTP response, check by ldconfig -p|grep libz
Inotify[optional] inotify, be used to reload all worker processes when your code is modified, check by php --ri inotify

Install

1.Require package via Composer(packagist).

2.Add service provider.

3.Publish configuration.

Suggest that do publish after upgrade LaravelS every time

Special for Lumen: you DO NOT need to load this configuration manually in bootstrap/app.php file, LaravelS will load it automatically.

4.Change config/laravels.php: listen_ip, listen_port, refer Settings.

Run demo

php artisan laravels {start|stop|restart|reload|publish}

Command Description
start Start LaravelS, list the processes by ps -ef|grep laravels
stop Stop LaravelS
restart Restart LaravelS
reload Reload all worker processes(Contain your business & Laravel/Lumen codes), exclude master/manger process
publish Publish configuration file laravels.php into folder config

Cooperate with Nginx (Recommended)

Cooperate with Apache

Enable WebSocket server

The Listening address of WebSocket Sever is the same as Http Server.

1.Create WebSocket Handler class, and implement interface WebsocketHandlerInterface.

2.Modify config/laravels.php.

3.Use swoole_table to bind FD & UserId, optional, Swoole Table Demo. Also you can use the other global storage services, like Redis/Memcached/MySQL, but be careful that FD will be possible conflicting between multiple Swoole Servers.

4.Cooperate with Nginx (Recommended)

Refer WebSocket Proxy

Listen events

System events

Usually, you can reset/destroy some global/static variables, or change the current Request/Response object.

Customized asynchronous events

This feature depends on AsyncTask of Swoole, your need to set swoole.task_worker_num in config/laravels.php firstly. The performance of asynchronous event processing is influenced by number of Swoole task process, you need to set task_worker_num appropriately.

1.Create event class.

2.Create listener class.

3.Bind event & listeners.

4.Fire event.

Asynchronous task queue

This feature depends on AsyncTask of Swoole, your need to set swoole.task_worker_num in config/laravels.php firstly. The performance of task processing is influenced by number of Swoole task process, you need to set task_worker_num appropriately.

1.Create task class.

2.Deliver task.

Millisecond cron job

Wrapper cron job base on Swoole's Millisecond Timer, replace Linux Crontab.

1.Create cron job class.

2.bind cron job.

Get the instance of swoole_server in your project

Use swoole_table

1.Define swoole_table, support multiple.

All defined tables will be created before Swoole starting.

2.Access swoole_table: all table instances will be bound on swoole_server, access by app('swoole')->xxxTable.

Important notices

Known compatible issues

Todo list

  1. Connection pool for MySQL/Redis.

  2. Wrap coroutine clients for MySQL/Redis/Http.

License

MIT


All versions of laravel-s with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 glzjin/laravel-s contains the following files

Loading the files please wait ....