PHPackages                             fas/example - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. fas/example

ActiveTemplate[HTTP &amp; Networking](/categories/http)

fas/example
===========

Example using fas

1.1.0(4y ago)09MITPHP

Since Jul 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gielfeldt/fas-example)[ Packagist](https://packagist.org/packages/fas/example)[ Docs](https://github.com/gielfeldt/fas-example)[ RSS](/packages/fas-example/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

[![Build Status](https://github.com/gielfeldt/fas-example/actions/workflows/test.yml/badge.svg)](https://github.com/gielfeldt/fas-example/actions/workflows/test.yml)[![Test Coverage](https://camo.githubusercontent.com/8f903abbefa684695acaef719579719d996d923ae98f3aa9800bdb5fed535666/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f6769656c66656c64742f37346337393565303266326630366637303233396337643830313733366361662f7261772f6661732d6578616d706c655f5f6d61696e2e6a736f6e)](https://camo.githubusercontent.com/8f903abbefa684695acaef719579719d996d923ae98f3aa9800bdb5fed535666/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f676973742e67697468756275736572636f6e74656e742e636f6d2f6769656c66656c64742f37346337393565303266326630366637303233396337643830313733366361662f7261772f6661732d6578616d706c655f5f6d61696e2e6a736f6e)

[![Latest Stable Version](https://camo.githubusercontent.com/2314f0fe3d18ffaa830244d864756fa66d5f7f5e0a126fba93bd004b7d7a042a/68747470733a2f2f706f7365722e707567782e6f72672f6661732f6578616d706c652f762f737461626c652e737667)](https://packagist.org/packages/fas/example)[![Latest Unstable Version](https://camo.githubusercontent.com/f82c78a0a40bc94e79f24c8f3ec2b3991acb0805d91f7e3c26a81eb73f1d3e01/68747470733a2f2f706f7365722e707567782e6f72672f6661732f6578616d706c652f762f756e737461626c652e737667)](https://packagist.org/packages/fas/example#dev-main)[![License](https://camo.githubusercontent.com/f98a7ec6da1f81f4f6b1b8dec816c455d6126e6c778b79a0444e3badc74eb05a/68747470733a2f2f706f7365722e707567782e6f72672f6661732f6578616d706c652f6c6963656e73652e737667)](https://github.com/gielfeldt/fas-example/blob/main/LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/66fb8a713e06ed70c5f0c605f717c81e52aa2f745bf795a47b571980f76c869d/68747470733a2f2f706f7365722e707567782e6f72672f6661732f6578616d706c652f646f776e6c6f6164732e737667)](https://camo.githubusercontent.com/66fb8a713e06ed70c5f0c605f717c81e52aa2f745bf795a47b571980f76c869d/68747470733a2f2f706f7365722e707567782e6f72672f6661732f6578616d706c652f646f776e6c6f6164732e737667)

Installation
============

[](#installation)

```
composer create-project fas/example myproject
```

Usage (dev mode)
================

[](#usage-dev-mode)

```
docker-compose up --build -d
```

Files
=====

[](#files)

```
cache/                   # contains precompiled container, routes, preloads, etc.
coverage/                # phpunits test coverage in html

docker/apache.conf       # apache configuration
docker/php.ini           # general php configuration
docker/prod.sh           # init script for docker container in prod mode
docker/php.dev.ini       # php overrides for dev mode
docker/dev.sh            # init script for docker container in dev mode

public/.htaccess         # standard htaccess for sending requests to index.php
public/index.php         # entrypoint for php application

src/ContainerFactory.php # di container setup
src/RouterFactory.php    # routes setup

bin/compile.php          # script for compiling container and routes for prod
bin/compile.config.php   # script for compiling configuration for prod
bin/preload.php          # preload entry point for production
bin/preload.app.php      # preloads specific to this application

config.yaml              # custom configuration file for your project
config.prod.yaml         # example of could-be prod config file

```

Simplest form
=============

[](#simplest-form)

If not using docker, compiled builds or tests, the code sums down to this:

```
public/.htaccess         # standard htaccess for sending requests to index.php
public/index.php         # entrypoint for php application
src/ContainerFactory.php # di container setup
src/RouterFactory.php    # routes setup

```

Create prod build
=================

[](#create-prod-build)

```
docker build -t fas:prod --target prod .
```

Run the prod build
==================

[](#run-the-prod-build)

```
docker run -d --name fas --rm -it -p8081:80 -v`pwd`/config.yaml:/app/config.yaml:ro fas:prod
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

1755d ago

Major Versions

0.1.0 → v1.0.02021-07-10

### Community

Maintainers

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

---

Top Contributors

[![gielfeldt](https://avatars.githubusercontent.com/u/4096963?v=4)](https://github.com/gielfeldt "gielfeldt (6 commits)")

---

Tags

apicontainerrestroutertemplateautowire

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fas-example/health.svg)

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

###  Alternatives

[contributte/api-router

RESTful Router for your Apis in Nette Framework - created either directly or via attributes

20802.8k3](/packages/contributte-api-router)[arhitector/yandex

PHP SDK для работы с некоторыми сервисами яндекса (Яндекс.Диск, Yandex.Disk)

13082.9k5](/packages/arhitector-yandex)[aphiria/aphiria

The Aphiria framework

1427.7k2](/packages/aphiria-aphiria)[lukasdev/drouter

Um sistema simplista de roteamento, com o intuito de ser utilizado em aplicacoes web pequenas e webservices REST

172.6k](/packages/lukasdev-drouter)

PHPackages © 2026

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