PHPackages                             00f100/fcphp-service - 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. 00f100/fcphp-service

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

00f100/fcphp-service
====================

Package to manipulate services of application

0.1.1(7y ago)064PHPPHP &gt;=7.2

Since Aug 15Pushed 7y ago1 watchersCompare

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

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

FcPhp Service
=============

[](#fcphp-service)

Abstract class to Service FcPhp

[![Build Status](https://camo.githubusercontent.com/404fe4474f85387bb5bdc490fa4683549a8731b1dbc89d50c3496f861c378c73/68747470733a2f2f7472617669732d63692e6f72672f3030463130302f66637068702d736572766963652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/00F100/fcphp-service) [![codecov](https://camo.githubusercontent.com/7942932ca8fe57098e85d7752d2b61a15a0fa95efc0329c8cb11fd40184c6edd/68747470733a2f2f636f6465636f762e696f2f67682f3030463130302f66637068702d736572766963652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/00F100/fcphp-service)

[![PHP Version](https://camo.githubusercontent.com/57587a3bf46a105aaa16e17c919b44388b7c329413b2e6a460f1817340a485be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f3030663130302f66637068702d736572766963652e737667)](https://packagist.org/packages/00F100/fcphp-service) [![Packagist Version](https://camo.githubusercontent.com/284efb5fec9d5f66b714d10d7b09fc28277a33ee248bde70ae731608ab78e4bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f3030663130302f66637068702d736572766963652e737667)](https://packagist.org/packages/00F100/fcphp-service) [![Total Downloads](https://camo.githubusercontent.com/e73f1b9fd9d7db3f15e5e5dcf593d3ce528f8d880a361513fb1cc6910d9fe818/68747470733a2f2f706f7365722e707567782e6f72672f3030463130302f66637068702d736572766963652f646f776e6c6f616473)](https://packagist.org/packages/00F100/fcphp-service)

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

[](#how-to-install)

Composer:

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

or add in composer.json

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

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

[](#how-to-use)

Extends your service from [FcPhp Service](https://github.com/00F100/fcphp-service) and add your repositories into Service using contruct method. After call to repository using "getRepository()" method.

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

    class ExampleService extends Service
    {
        public function __construct($userRepository, $profileRepository, $addressRepository)
        {
            $this->setRepository('user', $userRepository);
            $this->setRepository('profile', $profileRepository);
            $this->setRepository('address', $addressRepository);
        }

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

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

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

Service Callback
----------------

[](#service-callback)

```
use Example\ExampleService;

$instance = new ExampleService();

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

    // Your code here...

});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

2826d 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 (3 commits)")

---

Tags

packageservicesPHP7manipulatefcphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[composer/satis

Simple Repository Generator

3.3k1.4M17](/packages/composer-satis)[nunomaduro/essentials

Just better defaults for your Laravel projects.

1.2k317.5k51](/packages/nunomaduro-essentials)[sylius/registry

Services registry.

6211.0M40](/packages/sylius-registry)[christiankuri/laravel-favorite

Allows Laravel Eloquent models to implement a 'favorite' or 'remember' or 'follow' feature.

226471.2k5](/packages/christiankuri-laravel-favorite)

PHPackages © 2026

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