PHPackages                             00f100/fcphp-controller - 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. [Framework](/categories/framework)
4. /
5. 00f100/fcphp-controller

ActivePackage[Framework](/categories/framework)

00f100/fcphp-controller
=======================

Abstract class Controller to FcPhp

0.1.0(7y ago)0961PHPPHP &gt;=7.2

Since Aug 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/00F100/fcphp-controller)[ Packagist](https://packagist.org/packages/00f100/fcphp-controller)[ Docs](https://github.com/00f100/fcphp-controller)[ RSS](/packages/00f100-fcphp-controller/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

FcPhp Controller
================

[](#fcphp-controller)

Abstract class to Controller FcPhp

[![Build Status](https://camo.githubusercontent.com/192adf3cd4f4308e2665b75e32c4f6d372d3cd0133b18e5a1af2880717a24fc8/68747470733a2f2f7472617669732d63692e6f72672f3030463130302f66637068702d636f6e74726f6c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/00F100/fcphp-controller) [![codecov](https://camo.githubusercontent.com/65dc8868fc4615e4dea52ad07e4b07edc51e41ff1ebc46f2198d08ed1f82b3ee/68747470733a2f2f636f6465636f762e696f2f67682f3030463130302f66637068702d636f6e74726f6c6c65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/00F100/fcphp-controller)

[![PHP Version](https://camo.githubusercontent.com/68553b35413bad96799f8012335ef419e1c9bdc2e8c212be128e9f537403e004/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f3030663130302f66637068702d636f6e74726f6c6c65722e737667)](https://packagist.org/packages/00F100/fcphp-controller) [![Packagist Version](https://camo.githubusercontent.com/c38087fbaefffb7303e2039d9a18f6caed8b9c1a3b508b3ab5a4b6efb2d3a167/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f3030663130302f66637068702d636f6e74726f6c6c65722e737667)](https://packagist.org/packages/00F100/fcphp-controller) [![Total Downloads](https://camo.githubusercontent.com/060438a22c2d5165406c94f2e28dc77c6fac30f9a6bb51eec5bb7b1666677fe2/68747470733a2f2f706f7365722e707567782e6f72672f3030463130302f66637068702d636f6e74726f6c6c65722f646f776e6c6f616473)](https://packagist.org/packages/00F100/fcphp-controller)

How to install
--------------

[](#how-to-install)

Composer:

```
$ composer require 00f100/fcphp-controller
```

or add in composer.json

```
{
    "require": {
        "00f100/fcphp-controller": "*"
    }
}
```

How to use
----------

[](#how-to-use)

Extends your controller from [FcPhp Controller](https://github.com/00F100/fcphp-controller) and add your services into Controller using contruct method. After call to service using "getService()" method.

```
namespace Example
{
    use FcPhp\Controller\Controller;

    class ExampleController extends Controller
    {
        public function __construct($userService, $profileService, $addressService)
        {
            $this->setService('user', $userService);
            $this->setService('profile', $profileService);
            $this->setService('address', $addressService);
        }

        public function findUsers()
        {
            return $this->getService('user')->findAll();
        }

        public function findProfiles()
        {
            return $this->getService('profile')->findAll();
        }

        public function findAddresses()
        {
            return $this->getService('address')->findAll();
        }
    }
}
```

Controller Callback
-------------------

[](#controller-callback)

```
use Example\ExampleController;

$instance = new ExampleController(UserService(), ProfileService(), AddressService());

// Callback on find service using "getService()"...
$instance->callback('callbackService', function(string $service, $instance) {

    // Your code here...

});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

2832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ff406566b9371ed5b48e1e62a5dcafd6f1de2e3066fa0922afdfe418d100b8c?d=identicon)[00F100](/maintainers/00F100)

---

Top Contributors

[![00F100](https://avatars.githubusercontent.com/u/8130040?v=4)](https://github.com/00F100 "00F100 (5 commits)")

---

Tags

controllerfcphpfcphp-controllerphp7php72controllerPHP7abstractfcphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/00f100-fcphp-controller/health.svg)

```
[![Health](https://phpackages.com/badges/00f100-fcphp-controller/health.svg)](https://phpackages.com/packages/00f100-fcphp-controller)
```

###  Alternatives

[fuel/fuel

FuelPHP is a simple, flexible, community driven PHP 5.4+ framework, based on the best ideas of other frameworks, with a fresh start!

1.5k42.3k](/packages/fuel-fuel)[htmlburger/wpemerge

A micro framework which modernizes WordPress as a CMS development by providing tools to implement MVC and more.

456137.8k8](/packages/htmlburger-wpemerge)[mmoreram/controller-extra-bundle

Some specific controller annotations

151217.3k5](/packages/mmoreram-controller-extra-bundle)[akrabat/rka-slim-controller

Dynamically instantiated controller classes for Slim Framework

4827.3k1](/packages/akrabat-rka-slim-controller)[juliangut/slim-controller

Slim Framework controller creator

2539.4k](/packages/juliangut-slim-controller)[martynbiz/slim3-controller

Provides controller functionality to Slim Framework v3. Also includes PHPUnit TestCase for testing controllers.

2814.4k1](/packages/martynbiz-slim3-controller)

PHPackages © 2026

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