PHPackages                             xueron/pails - 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. xueron/pails

ActiveLibrary

xueron/pails
============

Pails (PhalconRails) is used to create a rails-like PHP app based on Phalcon.

3.2.0(8y ago)31.2k1MITPHPPHP &gt;=7.0

Since Sep 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xueron/pails)[ Packagist](https://packagist.org/packages/xueron/pails)[ Docs](https://pails.xueron.com)[ RSS](/packages/xueron-pails/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (12)Versions (35)Used By (1)

Pails
=====

[](#pails)

Pails is a PHP framework based on [Phalcon](https://github.com/phalcon/cphalcon).

[![Style CI](https://camo.githubusercontent.com/b71ce6534ac4cd874d0b831de963ec3898bbd74d83f0a20a065e6a9c2e1146db/68747470733a2f2f7374796c6563692e696f2f7265706f732f35363238303830362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/56280806)

[![Package version](https://camo.githubusercontent.com/5e95c8a68b458ccc3ab384d9ae0a5a69e110dba1c2f6300a937da53b7f04d025/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f787565726f6e2f7061696c732e737667)](https://packagist.org/packages/xueron/pails)

Install &amp; Run
-----------------

[](#install--run)

### Composer

[](#composer)

The fastest way to install Pails is to add it to your project using Composer ().

1. Install Composer:

    ```
    curl -sS https://getcomposer.org/installer | php

    ```
2. Create a pails project using Composer:

    ```
    php composer.phar create-project xueron/pails-seed myapp

    ```

基本目录结构
------

[](#基本目录结构)

~/app

- Console: 命令行工具
    - Commands: 自定义的命令行工具
- Http: web应用
    - Controllers: WEB应用控制器
- Models: 数据库模型 -- 扩展 \\Phalcon\\Mvc\\Model
- Services: 业务服务抽象，复杂一点的业务逻辑在这里实现
- Providers: 自定义的服务提供者

~/resources

- views: 视图文件（非PHP代码）

~/config

- database.yml 数据库配置
- app.php

~/db

- migrations: 数据库迁移文件
- seeds: seeds文件,初始化数据

~/log

- 应用程序内日志存放

~/public

- WEB应用的主目录

~/resources

- assets: 资源文件，主要是css和js
- views: 视图文件（非PHP代码）

~/tests

- 单元测试

~/tmp

- cache: 缓存类文件
    - volt: volt引擎编译缓存
- pids: 后台程序的pid文件位置（如有）
- sockets: 后台程序的socket文件位置（如有）

~/composer.json PHP的包管理配置

~/package.json npm的包管理配置

~/webpack.mix.js webpack打包工具的配置

~/pails 命令行工具入口

下面两个是动态生成的：
-----------

[](#下面两个是动态生成的)

~/node\_modules

- npm包的位置，初始运行npm install的时候会生产

~/vendor

- composer的安装位置，执行composer install的时候会生成

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Recently: every ~19 days

Total

34

Last Release

3181d ago

Major Versions

1.0.0 → 2.0.x-dev2017-01-25

2.0.x-dev → 3.0.02017-02-15

3.2.0 → 4.0.x-dev2017-06-28

PHP version history (2 changes)1.0.0PHP &gt;=5.6

3.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/865a76c6e5eb835228a2979ba447c2552178b9123c0df62217997eea57ec04ac?d=identicon)[xueron](/maintainers/xueron)

---

Top Contributors

[![xueron](https://avatars.githubusercontent.com/u/2560873?v=4)](https://github.com/xueron "xueron (179 commits)")

---

Tags

frameworklaravelpailsphalconphprailsphpphinxphalconrailspailsphalcon-rails

### Embed Badge

![Health badge](/badges/xueron-pails/health.svg)

```
[![Health](https://phpackages.com/badges/xueron-pails/health.svg)](https://phpackages.com/packages/xueron-pails)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
