jonas18121/recherche-entreprises-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Tests

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'entreprise
  • Siege : Établissement siège

🧪 Tests

vendor/bin/phpunit --testdox

📝 Licence

MIT

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04