PHPackages                             thibaultvanc/facturation-regie - 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. thibaultvanc/facturation-regie

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

thibaultvanc/facturation-regie
==============================

This package allows you to manage your facturation

1.0.1(7y ago)09MITPHPPHP ^7.1

Since Apr 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/thibaultvanc/facturation-regie)[ Packagist](https://packagist.org/packages/thibaultvanc/facturation-regie)[ Docs](https://github.com/thibaultvanc/facturation-regie)[ RSS](/packages/thibaultvanc-facturation-regie/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d371fe61b93d762f80d6a57b845f8258a8b970c1ed90ae0a3258ca53bd22565d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696261756c7476616e632f6661637475726174696f6e2d72656769652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thibaultvanc/facturation-regie)[![Build Status](https://camo.githubusercontent.com/0104587a26618e15dbfe529b9eb55afc3a75afb60a71cf00102ddf4f849aaf55/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468696261756c7476616e632f6661637475726174696f6e2d72656769652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thibaultvanc/facturation-regie)[![Quality Score](https://camo.githubusercontent.com/74410546ecfc20a45d8685eb3909ffa6b5ee86cb01de12fe5f0e662bd700fc68/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468696261756c7476616e632f6661637475726174696f6e2d72656769652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thibaultvanc/facturation-regie)[![Total Downloads](https://camo.githubusercontent.com/c2a65fdc72af613e7cd9e2a5315144fcf91ebc3fec9b4421c670214fe5dc4688/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696261756c7476616e632f6661637475726174696f6e2d72656769652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thibaultvanc/facturation-regie)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require thibaultvanc/facturation-regie
```

Usage
-----

[](#usage)

1-edit config

To use this package you Need

- User model
- Project Model
- pointables Models (Task &amp; Meeting)
- Invoice (planified)

Need to associate your Models with traits

User =&gt; FacturationRegie\\Traits\\RegieInvoicable\\RegieUser Invoice =&gt; FacturationRegie\\Traits\\RegieInvoicable\\RegieInvoice

Pointage =&gt; FacturationRegie\\Traits\\RegieInvoicable\\RegiePointage
Project =&gt; FacturationRegie\\Traits\\RegieInvoicable\\RegieProject Task/Meeting =&gt; FacturationRegie\\Traits\\RegieInvoicable

exemple =&gt;add RegieInvoicable trait on the table like Task / Meeting / Deplacement

```
class Task extends Model
{
    use \FacturationRegie\Traits\RegieInvoicable
}
```

Default forign key to determine the responsable is "responsable\_id" Note : overwite the method to set a différent :

```
public function regie_responsable()
    {
        return $this->belongsTo(\App\User::class, 'user_id');
    }
```

\##trasform a pointable (task / taskStatus / meeting)

\#adjust the date

overwrite the getPointageDate() method. Return a Carbon Instance. if this method does not exists, it take the current time

```
public function getPointageDate() :Carbon
    {
        return $this->done_at
    }
```

\#adjust the name

overwrite the getPointageName() method. Return a Carbon Instance. if this method does not exists, it take the current time

```
public function getPointageName() :Carbon
    {
        return $this->task_title
    }
```

\#adjust the date

overwrite the getPointageDescription() method. Return a Carbon Instance. if this method does not exists, it take the current time

```
public function getPointageDescription() :Carbon
    {
        return $this->body
    }
```

### pointage scopes

[](#pointage-scopes)

```
Pointage::between($date1, $date2); (carbon date or string)

Pointage::forDay($date); (carbon date or carbon)
Pointage::forMonth($date);  (prend le mois en cours)
Pointage::forYeay('2019');  (carbon)
Pointage::forUser($user); (user object or user_id)

Pointage::facturable();
Pointage::noFacturable();
```

You can combine like this :

```
    Pointage::forProject($project)
            ->forMonth(now())
            ->forUser($user)
            ->facturable();
```

Additional

You can scope by project

```
Pointage::forProject($project);
```

To do that, you need :

- on the Project Model add method ... ----------WIP--------

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2584d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10731886?v=4)[Van Campenhoudt](/maintainers/thibaultvanc)[@thibaultvanc](https://github.com/thibaultvanc)

---

Top Contributors

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

---

Tags

thibaultvancfacturation-regie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thibaultvanc-facturation-regie/health.svg)

```
[![Health](https://phpackages.com/badges/thibaultvanc-facturation-regie/health.svg)](https://phpackages.com/packages/thibaultvanc-facturation-regie)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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