jonas18121/recherche-entreprises-bundle
最新稳定版本:v0.1.0
Composer 安装命令:
composer require jonas18121/recherche-entreprises-bundle
包简介
Bundle Symfony pour l'API Recherche d'entreprises du gouvernement français
README 文档
README
Bundle Symfony pour l'API Recherche d'entreprises du gouvernement français.
📦 Installation
composer require jonas18121/recherche-entreprises-bundle
⚙️ Configuration (optionnelle)
# config/packages/jonas18121_recherche_entreprises.yaml jonas18121_recherche_entreprises: timeout: 10 # Timeout en secondes (défaut: 10)
🚀 Utilisation
Dans un Contrôleur
use Jonas18121\RechercheEntreprisesBundle\Client\EntrepriseSearchClientInterface; public function __construct( private EntrepriseSearchClientInterface $entrepriseClient ) {} public function search(): Response { $result = $this->entrepriseClient->search('carrefour'); foreach ($result->results as $entreprise) { echo $entreprise->nomComplet . ' - ' . $entreprise->siren; } }
Recherche par SIREN
$entreprise = $this->entrepriseClient->findBySiren('652014051'); if ($entreprise) { echo $entreprise->nomComplet; }
Commande Console
# Recherche simple php bin/console recherche-entreprise:search carrefour # Par SIREN (détails complets) php bin/console recherche-entreprise:search 652014051 --siren
📊 Modèles
SearchResult: Résultat paginéEntreprise: Données d'entrepriseSiege: Établissement siège
🧪 Tests
vendor/bin/phpunit --testdox
📝 Licence
MIT
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04