PHPackages                             arui/ala-site - 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. arui/ala-site

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

arui/ala-site
=============

the package work for ala site system , to build website fastily!

1.7(3y ago)022MITPHP

Since Dec 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arui0609/alasite-helper)[ Packagist](https://packagist.org/packages/arui/ala-site)[ RSS](/packages/arui-ala-site/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

ALASITE HELPER
==============

[](#alasite-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/84df3209f84e7721fa06dc86a445b6be349f6344c80c4b14c0903284a1ffafc3/68747470733a2f2f706f7365722e707567782e6f72672f617275692f616c612d736974652f762f737461626c652e737667)](https://packagist.org/packages/arui/ala-site)

ALASITE HELPER是一个服务于ALASITE网站服务的软件包。通过预先封装常用的Api，我们可以快速构建网站前端。 每个数据库对应的模型已经预先构建，可以直接使用。

安装
--

[](#安装)

执行下面的命令来安装ALASITE Helper的默认最新版本。

```
composer require arui/ala-site
```

文档
--

[](#文档)

本包启用了自动加载功能，毋需手动引入。本包已启用Facade，直接通过 [`Arui\AlaSite\AlaSite`](library/Arui%5CAlaSite/src/Facades/AlaSite.php)类的静态方法调用各个Api。 如有需要，请发布配置文件，并修改相关参数，否则图片等资源文件将无法正确显示。

### 发布配置文件：

[](#发布配置文件)

```
php artisan vendor:publish --provider="Arui\AlaSite\AlaSiteProvider"
```

### 调用示例

[](#调用示例)

```
    //查询轮播图列表
    AlaSite::banners();

    //查询主导航
    $cate_id = 100;  // 主导航所属分类的ID
    Alasite::nav($cate_id);
    // 主导航下的子导航
    foreach(Alasite::nav($cate_id) as $nav){
        $nav->childs;
    }

    //查询文件列表
    Alasite::files($folder_id,$pagesize = 0);

    //查询当前导航Model，path：查询其他路由的模型
    Alasite::current_nav($path = '');

    //查询文章列表
    Alasite::news($cate_id,$pagesize);

    //查询一条文章信息
    Alasite::new($new_id);

    //查询活动列表
    Alasite::events($cate_id,$pagesize);

    //查询一条活动信息
    Alasite::event($event_id);

    //查询人员列表，where_relate：补充查询条件
    Alasite::peoples($cate_id,$pagesize=0,$where_relate=[]);

    //查询一个人员信息
    Alasite::people($people_id);

    //查询一个页面信息
    Alasite::page($page_id);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~15 days

Total

8

Last Release

1169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2b4873832813c759274ed356370474eec90db2579a63ed4c4b17e1f9a3d14d6?d=identicon)[arui](/maintainers/arui)

---

Top Contributors

[![arui0609](https://avatars.githubusercontent.com/u/62299604?v=4)](https://github.com/arui0609 "arui0609 (9 commits)")

### Embed Badge

![Health badge](/badges/arui-ala-site/health.svg)

```
[![Health](https://phpackages.com/badges/arui-ala-site/health.svg)](https://phpackages.com/packages/arui-ala-site)
```

###  Alternatives

[teknoo/states

Library to create classes following the State pattern in PHP. This can be a cleaner way for an object to change its behavior at runtime without resorting to large monolithic conditional statements and this improve maintainability and workflow writing.

1138.5k18](/packages/teknoo-states)

PHPackages © 2026

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