PHPackages                             chigix/chiji - 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. chigix/chiji

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

chigix/chiji
============

Front-end Intergration Solution for PHP

1.0.6(11y ago)179Apache-2.0PHPPHP &gt;=5.4

Since Mar 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/chigix/chiji-frontend)[ Packagist](https://packagist.org/packages/chigix/chiji)[ Docs](http://www.chigix.com)[ RSS](/packages/chigix-chiji/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Chiji Front-end The Base Package
================================

[](#chiji-front-end-the-base-package)

- [Composer](https://packagist.org/packages/chigix/chiji)

Chiji is a PHP Component for providing the best Front-end Integrated Solution.

Getting Started
===============

[](#getting-started)

Chiji Base Package is a PHP Library though, it is designed to all front-end project case within JAVA Web, PHP MVC Framework, Single Page Application etc.

Originally, this Base Package is just a toolset with Project, annotation, SourceRoad classes, helping users reorganize front-end resources in a WEB project. Of course, there is a custom PHP script as a main entry in need to launch tasks for assets distributing.

Conclusionly, the PHP knowledge is required for all users (no matter UED engineers or this package contributors), if however, we also provide some bridge packages to common frameworks or cases, such as [Chiji-Bundle](https://packagist.org/packages/chigix/chiji-bundle) for Symfony users.

To be relax, the installation is the easiest. Every thing (including bridge packages) could be installed via Composer, which is just a linux command tool without any PHP details. The only technical requisite to step into the next secion, installation, is to have PHP 5.4 or higher installed on your composer. If you use a packaged PHP solution such as WAMP, XAMP or MAMP, chekcout that they are PHP5.4 or a more recent version. You can also execute the following command in your terminal or command console to display the installed PHP version:

```
$ php --version

```

Installing Chiji-Frontend
=========================

[](#installing-chiji-frontend)

Globally, everything in the official Chiji-Frontend Circles should be submitted in [Packagist](https://packagist.org), so you can use [Composer](https://getcomposer.org/) directly to finish the installation task:

```
$ composer require chigix/chiji:~1.0.0

```

If you are using some fashion frameworks or want other bridge packages, you could check details from the corresponding project.

Main Point
==========

[](#main-point)

In the Chiji Solution, the front-end project could be resolved, around the resources, as the three partition:

1. Resource Positioning
2. Resource Relation
3. Resource Releasing

Every assetic file (css, js, scripts, images) are treated as Resources located into one Project. Then the project would try to find target assetic files and registered as mapped resource object through SourceRoad, which with responsible for Assetic Pre-building and Releasing Flow.

Annotation is the main util for the requirement relationships between resources. More freely, Customer annotation could be implemented to cover more resource operation requisites and cases.

For users, the design on resources operation flow and releasing schedule is the main task, maybe you can have a look at the Symfony Chiji-bundle bridge repository.

Basic API Usage
===============

[](#basic-api-usage)

This section gives you a brief introduction to the PHP API for Chiji the Base Package.

```

```

Initially then, the configuration file for the front-end project is needed to create with defining the source roads. Defaultly, the original `\Chigi\Chiji\Project\ProjectConfig` abstract class could be used as the start kit directly.

```
require_once '/path/to/vendor/autoload.php'

$project = new \Chigi\Chiji\Project\Project("/path/to/conf-file.php");
\Chigi\Chiji\Util\ProjectUtil::registerProject($project);
foreach ($project->getReleaseDirs() as $dir) {
    // ... Clean and init release directories.
}
foreach ($project->getSourceDirs() as $dir) {
    // ... scan the directory for register files as resource.
    $project->getResourceByFile($file);
    // ...
}
foreach ($project->getRegisteredResources() as $resource) {
    if ($resource instanceof \Chigi\Chiji\File\Annotation) {
        $resource->analyzeAnnotations();
    }
}
foreach ($project->getReleasesCollection() as $resource) {
    $project->getMatchRoad($resource->getFile())->releaseResource($resource);
}
```

After registering the configured project, the operations for resources could be scheduled:

1. Resources Positioning through defined Source Roads in project.
2. Resources Relating through annotations embeded in resource codes.
3. Resources Releasing through defined Source Roads in project.

More Information
================

[](#more-information)

Read the [docs](./docs) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~4 days

Total

6

Last Release

4089d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2692787?v=4)[Richard Lea](/maintainers/chigix)[@chigix](https://github.com/chigix)

---

Top Contributors

[![chigix](https://avatars.githubusercontent.com/u/2692787?v=4)](https://github.com/chigix "chigix (78 commits)")

---

Tags

assetfront-endChigi

### Embed Badge

![Health badge](/badges/chigix-chiji/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5186.0k18](/packages/phel-lang-phel-lang)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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