A modular, event-driven and Swoole-enabled framework.

4.0.0 2020-05-20 23:20 UTC

This package is auto-updated.

Last update: 2020-07-21 10:49:49 UTC


LightMVC Framework

Easily create PHP applications by using any PHP library within this very modular, event-driven and Swoole-enabled framework!

Build Status Coverage Status Documentation Status PDS Skeleton

To add the LightMVC Framework package to your PHP project, you can simply run the following command on your computer's CLI:

$ composer require lightmvc/ascmvc

You can also use the LightMVC Skeleton Application by issuing these commands:

$ git clone
$ cd lightmvcskel
$ composer install

The LightMVC Skeleton Application can also be downloaded as an archive file from

The LightMVC Framework Skeleton Application can run on Swoole in order to make it lightning fast. In order to do so, you must make sure to install Swoole. From the CLI, as the root user, type the following:

$ pecl install swoole

After answering a few questions, Swoole will be compiled and installed. Then, as the root user, run the following command (on Linux/Unix/Mac):

$ echo "" >> /etc/php.ini

If running Swoole on Windows, please add the extension manually in PHP's php.ini file. The php.ini file might be located elsewhere on your system. For example, on Ubuntu 18.04, when running PHP 7.2, you will find this file in /etc/php/7.2/apache2. You can discover the location of this file by entering the command php --ini on the command line. It must also be mentioned that some systems have multiple INI files (CLI vs Web). Please modify all those that apply.

Then, from within the root directory of the project, you can run the following command:

$ COMPOSER_PROCESS_TIMEOUT=0 composer run-swoole

By default, Swoole will listen on the localhost loopback, on port 9501. If you wish to change this, please modify the run-swoole command inside the composer.json file accordingly.

Have a lot of fun! :)