Aller au contenu

omnilex/justice-administrative Référence de l’API

Étage
Fournisseur · Omnilex
Version
1.x
Suite de conformité
non branchée
Vérifié en réel
Vérifié en réel
Licence
MIT
composer require omnilex/justice-administrative:1.x-dev

Lue dans les fichiers PHP du paquet au commit eba71818c7be : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.

Omnilex\JusticeAdministrative

  • JusticeAdministrativeSource class

    The decisions of the Conseil d'État, the administrative courts of appeal and the administrative tribunals, from the open data of the administrative justice (opendata.justice-administrative.fr).

    6 methods · 5 constants

  • JusticeAdministrativeSourceFactory class

    The open data of the administrative courts - no key.

    3 options

Omnilex\JusticeAdministrative

JusticeAdministrativeSource class

final class JusticeAdministrativeSource extends HttpSource implements SearchInterface, DecisionReaderInterface, RecentInterface JusticeAdministrativeSource.php:40

The decisions of the Conseil d'État, the administrative courts of appeal and the administrative tribunals, from the open data of the administrative justice (opendata.justice-administrative.fr).

The site documents monthly archives to download; what is asked here is the interface its own search engine (/recherche) calls: no published contract, routes verified on 2026-10-04. It searches by text, court, kind of decision and dates, and reads one decision; it does not page (a query gives its first results, up to a limit), nor filter by subject, nor link decisions to texts.

The decisions are pseudonymised by the Conseil d'État before they are published: they are given as they are, and nothing here tries to put a name back on a person.

const BASE_URI = 'https://opendata.justice-administrative.fr/recherche/api'
const SHARE_URI = 'https://opendata.justice-administrative.fr/recherche/shareFile'
const MAX = 200

The most results asked in one call: the search engine's own default.

const DECIDED = 'Date_Lecture'

The date a decision was read in open court.

const ADDED = 'lastModified'

The date a decision was added to the base.

JusticeAdministrativeSource::__construct()

public function __construct(HttpClientInterface $http, string $baseUri = self::BASE_URI, array $headers = [], float $throttle = 1.0, readonly string $recent = self::ADDED)
$recent

the date recent() reads: self::ADDED (added to the base) or self::DECIDED

JusticeAdministrativeSource::getName()

public function getName(): string

JusticeAdministrativeSource::capabilities()

public function capabilities(): Capabilities
public function search(Query $query): Results

JusticeAdministrativeSource::recent()

public function recent(\DateTimeInterface $since, ?Query $query = null): Results

JusticeAdministrativeSource::decision()

public function decision(Identifier|string $id): ?Decision

JusticeAdministrativeSourceFactory class

final class JusticeAdministrativeSourceFactory extends SourceFactory JusticeAdministrativeSourceFactory.php:18

The open data of the administrative courts - no key.

options: recent: lastModified # the date recent() reads: lastModified (added to the base) or Date_Lecture (decided) throttle: 1.0 # seconds between two calls base_uri: 'https://opendata.justice-administrative.fr/recherche/api'

Options

OptionDefault
recentJusticeAdministrativeSource::ADDED
throttle1.0
base_uriJusticeAdministrativeSource::BASE_URI