PHPackages                             bathuyen/demo - 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. bathuyen/demo

ActiveLibrary

bathuyen/demo
=============

PSX sample project

v3.0.2(9y ago)017MITPHPPHP &gt;=5.6

Since Sep 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BaThuyen/psx-sample)[ Packagist](https://packagist.org/packages/bathuyen/demo)[ Docs](http://phpsx.org)[ RSS](/packages/bathuyen-demo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (32)Used By (0)

PSX Sample
==========

[](#psx-sample)

About
-----

[](#about)

This is a sample application wich can bootstrap a project based on the PSX framework. You can install it through composer

> php composer.phar create-project psx/sample .

More informations about PSX at

Configuration
-------------

[](#configuration)

In the configuration.php file change the key "psx\_url" to the absolute url to the public folder. If you have setup a vhost this is simply the domain. In case you use mod\_rewrite you can set the key "psx\_dispatch" to an empty value. Therefor you can use the sample htaccess file in the public folder.

Getting started
---------------

[](#getting-started)

In the following a few explanations about the important parts of the API.

- `src/Sample/Api/Population/Collection.php`
    This is the class which represents the /population endpoint
- `src/Sample/Service/Population.php`
    Service class which contains the business logic of the API.
- `src/Sample/Dependency/Container.php`
    DI container which overwrites the connection service to use a sqlite database.
- `tests/Sample/Api/Population/CollectionTest.php`Contains the PHPUnit test case for the /population endpoint. If you have phpunit installed you can run the tests in the root of the project with the phpunit command.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~41 days

Recently: every ~25 days

Total

31

Last Release

3377d ago

Major Versions

v1.2.4 → v2.0.02016-04-29

v2.0.6 → v3.0.02016-12-24

PHP version history (3 changes)v1.0.0PHP &gt;=5.3

v2.0.6PHP &gt;=5.5

v3.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/75013f8633ffef17cc59441b3a0d38232f945c0e801a5e538ad275bb730226f8?d=identicon)[bathuyenle](/maintainers/bathuyenle)

---

Top Contributors

[![chriskapp](https://avatars.githubusercontent.com/u/2505846?v=4)](https://github.com/chriskapp "chriskapp (89 commits)")[![BaThuyen](https://avatars.githubusercontent.com/u/14847752?v=4)](https://github.com/BaThuyen "BaThuyen (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bathuyen-demo/health.svg)

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

PHPackages © 2026

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