PHPackages                             libertempo/api - 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. [API Development](/categories/api)
4. /
5. libertempo/api

ActiveLibrary[API Development](/categories/api)

libertempo/api
==============

v1.10.0(6y ago)11.8k↑1900%2[3 issues](https://github.com/libertempo/api/issues)[6 PRs](https://github.com/libertempo/api/pulls)AGPL-3.0PHPPHP ^7.1

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/libertempo/api)[ Packagist](https://packagist.org/packages/libertempo/api)[ RSS](/packages/libertempo-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (10)Versions (34)Used By (0)

libertempo-api
==============

[](#libertempo-api)

[![BCH compliance](https://camo.githubusercontent.com/b79d89ac83339f9afc8c55fda841c3bd975118e17e2811c593300ac4f3c3e1ab/68747470733a2f2f626574746572636f64656875622e636f6d2f656467652f62616467652f6c6962657274656d706f2f6170693f6272616e63683d6d6173746572)](https://bettercodehub.com/)[![Codacy Badge](https://camo.githubusercontent.com/fcde42f7dac8152919db5babaa8d6e4dcb5df5ebc2bd3836b36ce67c801c8b1e/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6339323438653361383135333437323039633865353664323239316630646137)](https://www.codacy.com/app/libertempo/api)[![Codacy Badge](https://camo.githubusercontent.com/095a2120a938491b76f86a7e6f4ba3bd07df1bee59e25d246a5615bd42d8aec6/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f6339323438653361383135333437323039633865353664323239316630646137)](https://www.codacy.com/app/libertempo/api)[![Build Status](https://camo.githubusercontent.com/8db65011b267927f33059c53a99f10c12c86613f3f094cf813f9c36043788db7/68747470733a2f2f7472617669732d63692e6f72672f6c6962657274656d706f2f6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/libertempo/api)

Panthéon
--------

[](#panthéon)

[![](https://camo.githubusercontent.com/dc0f1b9f6f4ed1e737a40f6c41c6c6f88c0a7a2f074f2d3bc7465f201946aebe/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f30)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/0)[![](https://camo.githubusercontent.com/da0490f1d693ee4cb6f1bfc6319240f408589fe1e7586dcf91cd735a908a6b63/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f31)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/1)[![](https://camo.githubusercontent.com/2bf2674d8a2dab9636788c45c8387cf0555ff62538f95cc86c4e7e6ef0e023ff/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f32)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/2)[![](https://camo.githubusercontent.com/6edd7aca11f009d56da7d18045a390c7e6b8621279c1474e554b3c28ba986801/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f33)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/3)[![](https://camo.githubusercontent.com/c7f28fbf59fb35eb6626b091abe63497e066bff9bb7d60ca962c95013ed17df7/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f34)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/4)[![](https://camo.githubusercontent.com/b489a29ed3d1709ded605a3344729219b7a2768ff106a0c4e11addca5d49b3a2/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f35)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/5)[![](https://camo.githubusercontent.com/223d09c14f98032289fbb9f4902a78f0411f68a2184839c1982fa43e1c668773/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f36)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/6)[![](https://camo.githubusercontent.com/55e8a4d6aca1ee990e6531db28aae4d2bdd7d2f9b6530b7578b72ff1d327664d/68747470733a2f2f736f757263657265722e696f2f66616d652f707279746f65677269616e2f6c6962657274656d706f2f6170692f696d616765732f37)](https://sourcerer.io/fame/prytoegrian/libertempo/api/links/7)

API Libertempo
--------------

[](#api-libertempo)

Initialisation
==============

[](#initialisation)

L'installation sous sa forme la plus simple se résume à faire :

```
git clone git@github.com:libertempo/api.git
cd api
make install
ln -sf `pwd`/Tools/Scripts/post-checkout .git/hooks/post-checkout
```

L'API Libertempo doit être installée comme un domaine à part, autrement dit :

- api.libertempo.tld
- api.libertempo.mon-entreprise.tld

Et non pas comme un sous-répertoire de votre domaine existant :

- mon-entreprise.tld/libertempo/api
- libertempo.mon-entreprise.tld/api

C'est préférable pour l'isolation des systèmes (donc la sécurité), en plus d'être plus simple à gérer côté applicatif (plus de certitudes, donc moins de bugs).

Les échanges se font en JSON et nous suivons les codes HTTP standards.

Requête
=======

[](#requête)

En tant qu'architecture REST, les échanges sont *sans-état*, ce qui signifie que le serveur ne stocke pas d'information pour se *souvenir* d'un client et n'induit rien. Cela implique que le client doit fournir toutes les informations nécessaires à la réalisation d'une action, passant tout d'abord par une *connexion*, puis la transmission à chaque requête du *token* reçu suite à cette connexion.

Les headers basiques, à transmettre pour toute requête, sont :

```
Content-Type: application/json
Accept: application/json

```

Première requête
----------------

[](#première-requête)

Afin de vérifier que l'installation de l'API s'est bien déroulée, nous avons mis en place une route sans authentification :

```
GET /hello_world

```

Authentification
----------------

[](#authentification)

L'authentification s'appuie sur la méthode [Basic Access](https://en.wikipedia.org/wiki/Basic_access_authentication) :

```
GET /authentification
Authorization: Basic {base64(login:mot_de_passe)}

```

Si l'utilisateur existe et a le droit de se connecter, l'API enverra le token d'identification, dont la durée de validité est de 30min (repoussée à chaque échange).

Échanges authentifiés
---------------------

[](#échanges-authentifiés)

Une fois connecté, tous les échanges devront avoir le header :

```
Token: {token}

```

Requêtes avec données
---------------------

[](#requêtes-avec-données)

Lors d'un ordre avec données (POST | PUT), le corps de la requête doit ressembler à :

```
{
    "propriété1": "valeur1",
    "propriétéN": "valeurN"
}
```

Réponse
=======

[](#réponse)

Les réponses de l'API se font sous la spécification jsend. Autrement dit :

```
{
    "code": "codeHTTP",
    "status": "typeDeReponse",
    "message": "messageCorrespondantAuCode",
    "data": "donnéesDeRéponse"
}
```

Routes disponibles
==================

[](#routes-disponibles)

Voir [Swagger](https://app.swaggerhub.com/apis/Libertempo/api) pour une documentation exhaustive.

Versions
========

[](#versions)

L'API suit `semver`, ce qui signifie qu'une route ne sera enlevée ou que ses spécifications ne seront changées que si la version passe `vM.0.0`. Autrement, il n'y aura pas de [cassages de compatibilité](https://github.com/Prytoegrian/check-break#what-is-a-compatibility-break-) .

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 74.8% 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 ~50 days

Recently: every ~99 days

Total

22

Last Release

2309d ago

Major Versions

v0.7.0 → v1.0.02018-05-08

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.6.0PHP ^7.1

### Community

Maintainers

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

---

Top Contributors

[![prytoegrian](https://avatars.githubusercontent.com/u/5312739?v=4)](https://github.com/prytoegrian "prytoegrian (107 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![wouldsmina](https://avatars.githubusercontent.com/u/12614881?v=4)](https://github.com/wouldsmina "wouldsmina (14 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (6 commits)")

---

Tags

apibeginner-friendlycongesleavelibre

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/libertempo-api/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.0k](/packages/showdoc-showdoc)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)

PHPackages © 2026

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