Download the PHP package arnoldkouya/plan-comptable-syscohada without Composer
On this page you can find all versions of the php package arnoldkouya/plan-comptable-syscohada. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download arnoldkouya/plan-comptable-syscohada
More information about arnoldkouya/plan-comptable-syscohada
Files in arnoldkouya/plan-comptable-syscohada
Download arnoldkouya/plan-comptable-syscohada
More information about arnoldkouya/plan-comptable-syscohada
Files in arnoldkouya/plan-comptable-syscohada
Vendor arnoldkouya
Package plan-comptable-syscohada
Short Description Bibliothèque PHP complète du Plan Comptable SYSCOHADA (OHADA) — recherche, validation et navigation des comptes
License MIT
Homepage https://github.com/syscohada/plan-comptable
Package plan-comptable-syscohada
Short Description Bibliothèque PHP complète du Plan Comptable SYSCOHADA (OHADA) — recherche, validation et navigation des comptes
License MIT
Homepage https://github.com/syscohada/plan-comptable
Please rate this library. Is it a good library?
Informations about the package plan-comptable-syscohada
Plan Comptable SYSCOHAD
Bibliothèque PHP complète du Plan Comptable SYSCOHADA — le système comptable normalisé des États membres de l'OHADA.
Recherche, validation, navigation et interrogation de tous les comptes (classes 1 à 9), avec leurs libellés, leur nature (bilan / gestion / hors-bilan / CAGE) et leur sens (débit / crédit / mixte).
Installation
Prérequis : PHP ≥ 8.1
Démarrage rapide
API complète
PlanComptable
| Méthode | Description |
|---|---|
getInstance() |
Singleton — retourne l'instance unique |
find(string $code) |
Retourne le Compte ou null |
findOrFail(string $code) |
Retourne le Compte ou lance CompteNotFoundException |
exists(string $code) |
Vérifie l'existence d'un code |
valider(string $code) |
Alias de exists |
classe(int $classe) |
Tous les comptes d'une classe (1–9) |
classeNiveau(int $classe, int $niveau) |
Comptes d'une classe à un niveau donné |
enfants(string $code) |
Enfants directs |
descendants(string $code) |
Tous les descendants (récursif) |
search(string $terme) |
Recherche sur le code ou le libellé |
nature(string $nature) |
Filtre par nature (bilan, gestion, hors-bilan, cage) |
sens(string $sens) |
Filtre par sens (debit, credit, mixte) |
chemin(string $code) |
Chemin depuis la racine jusqu'au compte |
all() |
Tous les comptes du plan |
statistiques() |
Statistiques du plan |
Compte
| Méthode | Retour | Description |
|---|---|---|
getCode() |
string |
Code du compte |
getLibelle() |
string |
Libellé officiel |
getClasse() |
int |
Classe (1–9) |
getNiveau() |
int |
Niveau / profondeur (1–4) |
getCodeParent() |
?string |
Code du compte parent |
getNature() |
?string |
bilan, gestion, hors-bilan, cage |
getSens() |
?string |
debit, credit, mixte |
isActif() |
bool |
Compte actif |
isGroupe() |
bool |
Niveau ≤ 2 (compte racine) |
isDivisionnaire() |
bool |
Niveau = 4 |
toArray() |
array |
Représentation tableau |
__toString() |
string |
"CODE — Libellé" |
Validator
Exemples avancés
Arbre d'une classe
Valider un lot de codes
Export JSON de la classe 5
Statistiques
Tests
Structure du projet
Couverture du plan
| Classe | Description | Comptes |
|---|---|---|
| 1 | Ressources durables | ✅ Complet |
| 2 | Actif immobilisé | ✅ Complet |
| 3 | Stocks | ✅ Complet |
| 4 | Comptes de tiers | ✅ Complet |
| 5 | Trésorerie | ✅ Complet |
| 6 | Charges activités ordinaires | ✅ Complet |
| 7 | Produits activités ordinaires | ✅ Complet |
| 8 | Autres charges et produits | ✅ Complet |
| 9 | Engagements hors bilan + CAGE | ✅ Complet |
Licence
MIT — voir LICENSE
All versions of plan-comptable-syscohada with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package arnoldkouya/plan-comptable-syscohada contains the following files
Loading the files please wait ...