定制 aurelbichop/recherche-entreprises-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aurelbichop/recherche-entreprises-bundle

最新稳定版本:v0.1.0

Composer 安装命令:

composer require aurelbichop/recherche-entreprises-bundle

包简介

Bundle Symfony pour l'API Recherche d'entreprises du gouvernement français

README 文档

README

Recherche Entreprises Bundle

Tests

Bundle Symfony pour l'API Recherche d'entreprises du gouvernement français.

📦 Installation

composer require aurelbichop/recherche-entreprises-bundle

⚙️ Configuration (optionnelle)

# config/packages/aurelbichop_recherche_entreprises.yaml
aurel_bichop_recherche_entreprises:
    timeout: 10  # Timeout en secondes (défaut: 10)

🚀 Utilisation

Dans un Contrôleur

use AurelBichop\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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-24