PHPackages                             skyguest/ecadapter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. skyguest/ecadapter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

skyguest/ecadapter
==================

ecshop adapter

06PHP

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/skyguest/ecadapter)[ Packagist](https://packagist.org/packages/skyguest/ecadapter)[ RSS](/packages/skyguest-ecadapter/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Ecadapter
=========

[](#ecadapter)

**Ecadapter**是一个小框架，为了兼容老的ecshop，过渡期而写的。

- **功能丰富** ：支持加载服务，扩展方便；
- **兼容会话** ：Session调用原系统，集成可以保持登录；

---

Ecadapter简介
-----------

[](#ecadapter简介)

> 持续开发，摒弃过时的 —— [开发者](http://www.shangxiaxing.com)

### 代码块，小框架入口

[](#代码块小框架入口)

```
if ( !defined('EC_CHARSET') ) {
	require __DIR__.'/../data/config.php';
	date_default_timezone_set($timezone);
}
$_app = new Skyguest\Ecadapter\Foundation\Application([
    // 调试模式
	'debug' => true,
	'db' => [
		'host' => $db_host,
		'database' => $db_name,
		'username' => $db_user,
		'password' => $db_pass,
		'prefix' => $prefix,
	],
	'log' => [
		'file' => dirname(__DIR__) . '/temp/applogs/' .date('Y/m/d/'). 'app.log',
		'level' => 'debug',
		'sql' => true,
	],
	'session' => [
		'cookie' => 'ECS_ID',
		'lifetime' => 1800,
		'cookie_path' => $cookie_path,
		'cookie_domain' => $cookie_domain,
		'session_cookie_secure' => false,
	],
	'auth' => [
		'model' => App\Models\Users::class,
	],
	// 配置的路径
	'config_path' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'config',
	// 试图配置
	'view' => [
		'paths' => [
			realpath(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'View')
		],
		'compiled' => realpath(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'temp' . DIRECTORY_SEPARATOR . 'viewtemp'),
	],
]);

// 初始化数据库
$_db = $_app->db;
```

反馈与建议
-----

[](#反馈与建议)

- 邮箱：

---

感谢阅读这份帮助文档。

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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://avatars.githubusercontent.com/u/998522?v=4)[ab0029](/maintainers/ab0029)[@ab0029](https://github.com/ab0029)

---

Top Contributors

[![skyguest](https://avatars.githubusercontent.com/u/20396541?v=4)](https://github.com/skyguest "skyguest (16 commits)")

### Embed Badge

![Health badge](/badges/skyguest-ecadapter/health.svg)

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

###  Alternatives

[koriym/attributes

An annotation/attribute reader

433.6M14](/packages/koriym-attributes)

PHPackages © 2026

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