PHPackages                             ivanvoitovych/fluffy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ivanvoitovych/fluffy

ActiveLibrary[Framework](/categories/framework)

ivanvoitovych/fluffy
====================

Fluffy framework. Based on Viewi and Swoole.

v1.1.7(7mo ago)45MITPHP

Since Jan 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/fluffy-space/fluffy)[ Packagist](https://packagist.org/packages/ivanvoitovych/fluffy)[ RSS](/packages/ivanvoitovych-fluffy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

fluffy
======

[](#fluffy)

Fluffy framework. Based on Viewi and Swoole.

Not ready for production.

Commands
--------

[](#commands)

### Set up Nginx on WSL

[](#set-up-nginx-on-wsl)

`php fluffy nginx nutrition.wsl.com`

### Run server

[](#run-server)

`php fluffy server`

### Reload server

[](#reload-server)

`php fluffy reload`

### Watch mode - runs server and rebuilds application on file changes

[](#watch-mode---runs-server-and-rebuilds-application-on-file-changes)

`php fluffy watch`

### Build - builds the app

[](#build---builds-the-app)

`php fluffy build [environment]`

For example:

`php fluffy build dev`

`php fluffy build prod`

`php fluffy build local`

### Install (create all tables)

[](#install-create-all-tables)

`php fluffy install`

### Run migrations

[](#run-migrations)

`php fluffy migrate`

Rollback migration

`php fluffy migrate rollback Application\\Migrations\\Menu\\MenuItemMigration`

### Create Entity model

[](#create-entity-model)

`php fluffy model create EntityName [Namespace]`

Example:

`php fluffy model create UserTokenEntity Auth`

### Generate Entity model repository, migration, service; register migration, repository, service

[](#generate-entity-model-repository-migration-service-register-migration-repository-service)

`php fluffy model build UserTokenEntity Auth`

### Generate Controller

[](#generate-controller)

`Catalog/ProductController`

`php fluffy controller create Product Catalog`

### Generate Viewi admin pages

[](#generate-viewi-admin-pages)

`php fluffy viewi create [Name] [Folder] [ModelsFolder]`

`php fluffy viewi create Order Order Sales`

### Cron Tab

[](#cron-tab)

`Application\crontab.php`

```
CronTab::schedule([TestTask::class, 'execute'], '*/5 * * * * *');
```

### Hubs (Web sockets)

[](#hubs-web-sockets)

`Application\hubs.php`

```
Hubs::mapHub('collect', [CollectHub::class, 'collect']);
```

```
