PHPackages                             hutong/xcore - 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. hutong/xcore

ActiveLibrary

hutong/xcore
============

test

19PHP

Since Mar 11Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

xcore
=====

[](#xcore)

application.ini \[common\] application.directory = APPLICATION\_PATH "/application" application.dispatcher.catchException = TRUE application.library = APPLICATION\_PATH "/application/library" application.library.namespace = "Local" application.modules = "Index,Admin" application.view.ext = "html" ;layout配置 layout.open = 1 layout.path = APPLICATION\_PATH "/application/layout"

;数据库配置信息 database.driver = "mysql" database.read.0.host = "127.0.0.1" database.write.0.host = "127.0.0.1" database.database = "yaf" database.username = "root" database.password = "root" database.port = 3306 database.charset = utf8 database.collation = utf8\_unicode\_ci database.prefix = ""

;缓存配置信息 cache.default = "file" cache.prefix = "laravel" ;file cache.stores.file.driver = "file" cache.stores.file.path = "/var/www/cache" ;array cache.stores.array.driver = "array" ;redis cache.stores.redis.driver = "redis" cache.stores.redis.connection = "default" ;database cache.stores.database.driver = "database" cache.stores.database.table = "caches" cache.stores.database.connection = ""

;key生成规则 return 'base64:'.base64\_encode(random\_bytes(16/32)) encryption.key = 'base64:JpHTZVL0v3PUTyngDrxavbQh9N9bRjNh7JTQXedbeJI=' encryption.cipher = 'AES-256-CBC'

;redis配置 redis.cluster = "false" redis.default.host = "127.0.0.1" redis.default.password = "123456" redis.default.port = "6379" redis.default.database = "0"

;Filesystem配置 filesystem.default = "local" filesystem.cloud = "s3" filesystem.disks.local.driver = "local" filesystem.disks.disks.local.root = "/var/www/cache/app" filesystem.disks.public.driver = "local" filesystem.disks.public.root = "/var/www/cache/app/public" filesystem.disks.public.visibility = "public" filesystem.disks.s3.driver = "s3" filesystem.disks.s3.key = "your-key" filesystem.disks.s3.secret = "your-secret" filesystem.disks.s3.region = "your-region" filesystem.disks.s3.bucket = "your-bucket"

;Session配置 session.driver = "database" session.lifetime = "1" session.expire\_on\_close = "false" session.encrypt = false session.files = "/var/www/cache/session" session.connection = "default" session.table = "sessions" session.store = "" session.lottery = "\[2,100\]" session.cookie = "laravel\_session" session.path = "/tmp" session.domain = "frame.hutong.com" session.secure = "false" session.http\_only = "true" \[product : common\]

public function \_initPlugin(Yaf\\Dispatcher $dispatcher) { //注册一个插件 if(Yaf\\Registry::get('config')-&gt;layout-&gt;open) { $dispatcher-&gt;registerPlugin(new HuTong\\Xcore\\Layout()); } }

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7aaff7a01a02c245b7536d3155d8febba66c30abb902d070d4da16a23a926254?d=identicon)[HuTong](/maintainers/HuTong)

---

Top Contributors

[![HuTong](https://avatars.githubusercontent.com/u/8066878?v=4)](https://github.com/HuTong "HuTong (14 commits)")

### Embed Badge

![Health badge](/badges/hutong-xcore/health.svg)

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

PHPackages © 2026

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