PHPackages                             woodlsy/phalcon - 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. woodlsy/phalcon

ActiveLibrary[Framework](/categories/framework)

woodlsy/phalcon
===============

phalcon

0.3.37(1y ago)02691MITPHPPHP &gt;=7.2.0

Since Sep 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/woodlsy/phalcon)[ Packagist](https://packagist.org/packages/woodlsy/phalcon)[ RSS](/packages/woodlsy-phalcon/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (51)Used By (0)

phalcon
=======

[](#phalcon)

- version 0.3.30

### 入口文件

[](#入口文件)

```
define('APP_NAME', 'app'); // 项目名称
define('APP_DIR', 'application'); // 项目文件根目录文件，无则留空

require '../vendor/woodlsy/phalcon/public/index.php';
```

### 脚本

[](#脚本)

tasks文件夹放在根目录下 入口文件cli.php

```
define('APP_NAME', 'app');

require_once 'vendor/woodlsy/phalcon/cli.php';
```

### 配置文件

[](#配置文件)

配置文件有两种方式

- application/config/config.php

```
return [
    'open_modules' => true, // 是否开启多模块，true 是 false 否
    'modules' => [
        'index',
    ],
    'yar_service' => false, // 是否作为yar的服务端
    'limit_request' => true, // 限制频繁请求 true 是 false 否
    'csrf' => true, // 是否开启csrf true是 false 否
    'csrf_key_name' => 'tokenKey',
    'csrf_key_value' => 'tokenValue',
    'logsPath'  => '/data/logs/'.APP_NAME.'/',
    'viewsDir'       => APP_PATH . '/views/',
    'debug'          => true,
    'suffix' => 'html', // URL后缀
    'pSql'             => false, // 打印sql
    'isCast'           => false, // 强制转换数据类型
    'redis' => [
        'host' =>'127.0.0.1',
        'port' =>'6379',
        'password' => '123456', //密码 默认为空
        'prefix' => 'app_', //KEY的前缀 默认 空
    ],
    'db' => [
        'master'=>[
            'adapter'  => 'mysql',
            'host'     => '127.0.0.1',
            'username' => 'root',
            'password' => '',
            'port'     => '3306',
            'dbname'   => 'user',
            'prefix'   => 'pr_',
            'charset'  => 'utf8',
        ],
    ],
];
```

- .env（优先）

env文件放在根目录下，配置的内容和config一致，只是写法不同而已，具体可以参考[.example\_env](.example_env)env文件中定义的配置，也可在程序中通过getenv('DEBUG')来获取，需要注意的是一下两点：

1. 根据大众的惯例，env中的KEY都会转为大写
2. 因PHP读取env文件的限制，key不能为null，yes，no，true 和 false，而value为null，no 和 false 等效于 ""，value为 yes 和 true 等效于 "1"。需自己进行类型的转换。

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~39 days

Recently: every ~205 days

Total

50

Last Release

517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43159b6df08703fd2a8fcfbce627dc365475271fcdf1f014f8b2254a55ef110a?d=identicon)[woodlsy](/maintainers/woodlsy)

---

Top Contributors

[![ls-yw](https://avatars.githubusercontent.com/u/16362739?v=4)](https://github.com/ls-yw "ls-yw (3 commits)")[![woodlsy](https://avatars.githubusercontent.com/u/46508413?v=4)](https://github.com/woodlsy "woodlsy (2 commits)")

### Embed Badge

![Health badge](/badges/woodlsy-phalcon/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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