PHPackages                             wilfreedi/laravel-apifinder - 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. wilfreedi/laravel-apifinder

ActiveLibrary[API Development](/categories/api)

wilfreedi/laravel-apifinder
===========================

PHP клиент для взаимодействия с API Finder

0.1.0(4mo ago)026MITPHPPHP ^8.1

Since Apr 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/wilfreedi/laravel-apifinder)[ Packagist](https://packagist.org/packages/wilfreedi/laravel-apifinder)[ RSS](/packages/wilfreedi-laravel-apifinder/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

 [ API Finder ](https://github.com/wilfreedi/laravel-apifinder)
===============================================================

[](#------api-finder--)

 [![Packagist License](https://camo.githubusercontent.com/fbaf9771f9a1c6a0dff7fb59471c24435c1fff0e74d35fc5aa9aa32fa1d19661/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f77696c6672656564692f6c61726176656c2d61706966696e646572)](LICENSE) [![Packagist Downloads](https://camo.githubusercontent.com/37b11aecc8f64dd440cfda4777354e3b3d274018ca9d11520257a001854932a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696c6672656564692f6c61726176656c2d61706966696e646572)](https://packagist.org/packages/wilfreedi/laravel-apifinder) [![Packagist Version](https://camo.githubusercontent.com/b93b756015407a95911d20995b4a2c9c50fb7d4cedc28db2ad71617a7fc480c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696c6672656564692f6c61726176656c2d61706966696e646572)](https://packagist.org/packages/wilfreedi/laravel-apifinder)

PHP клиент для взаимодействия с [API Finder](https://apifinder.ru).

Установка
---------

[](#установка)

`composer require wilfreedi/laravel-apifinder`

Публикация файла настроек
-------------------------

[](#публикация-файла-настроек)

`php artisan vendor:publish --provider="Wilfreedi\ApiFinder\Providers\ApiFinderServiceProvider" --tag="config"`

### Переменные .env

[](#переменные-env)

```
APIFINDER_BASE_URL=https://apifinder.ru
APIFINDER_API_TOKEN=your_secure_bearer_token_here
APIFINDER_TIMEOUT=60

```

Использование
-------------

[](#использование)

### Вне Laravel

[](#вне-laravel)

```
use Wilfreedi\ApiFinder\ApiFinderClient;

$baseUrl = 'https://apifinder.ru';
$apiToken = 'your_secure_bearer_token_here';
$timeout = 60; // опционально
$guzzleOptions = [ // опционально
    // 'proxy' => 'http://user:pass@host:port'
];

$client = new ApiFinderClient($baseUrl, $apiToken, $timeout, $guzzleOptions);

// Дальнейшее использование
$openaiService = $client->openAI();

$geminiResponse = $client->gemini()->generateContent('gemini-1.5-pro', [
    'contents' => [['parts' => [['text' => 'Explain quantum physics']]]]
]);

//Загрузка файла в Gemini
$fileResponse = $client->gemini()->uploadFile('/path/to/image.jpg');

// $deepseekService = $client->deepSeek();
```

### Laravel (с фасадом)

[](#laravel-с-фасадом)

```
use Wilfreedi\ApiFinder\Facades\ApiFinder;

// --- OpenAI Chat ---
try {
    $params = [
        'model'    => 'gpt-3.5-turbo',
        'messages' => [
            ['role' => 'user', 'content' => 'Hello!']
        ]
    ];
    $response = ApiFinder::openAI()->chat($params);
    print_r($response);
} catch (\Wilfreedi\ApiFinder\Exceptions\ApiException $e) {
    // Обработка ошибок API
    echo "API Error: " . $e->getMessage() . " (Status: " . $e->getCode() . ")\n";
}

// --- OpenAI Transcribe ---
try {
    $filePath = '/path/to/your/audio.mp3';
    $params = [
        'model'    => 'whisper-1',
        'language' => 'en' // опционально
    ];
    $response = ApiFinder::openAI()->transcribe($filePath, basename($filePath), $params);
    echo "Transcription: " . $response['text'] . "\n";
} catch (\Wilfreedi\ApiFinder\Exceptions\ApiException $e) {
    // Обработка ошибок
     echo "API Error: " . $e->getMessage() . " (Status: " . $e->getCode() . ")\n";
} catch (\InvalidArgumentException $e) {
     // Ошибка файла
     echo "File Error: " . $e->getMessage() . "\n";
}
```

### Laravel (Dependency Injection)

[](#laravel-dependency-injection)

```
use Illuminate\Http\Request;
use Wilfreedi\ApiFinder\ApiFinderClient;
use Wilfreedi\ApiFinder\Services\OpenAIService; // Если внедрять напрямую

class SomeController
{
    protected ApiFinderClient $apiFinderClient;
    // Или protected OpenAIService $openaiService;

    public function __construct(ApiFinderClient $apiFinderClient /* или OpenAIService $openaiService */) {
        $this->apiFinderClient = $apiFinderClient;
        // $this->openaiService = $openaiService;
    }

    public function handleOpenAI(Request $request) {
        $openaiService = $this->apiFinderClient->openAI();
        try {
            $response = $openaiService->chat($request->input('params'));
            // ...
        } catch (\Wilfreedi\ApiFinder\Exceptions\ApiException $e) {
            // ...
        }
    }
}
```

Сообщить о проблеме
-------------------

[](#сообщить-о-проблеме)

Если вы обнаружите ошибку или у вас есть предложения по улучшению библиотеки, пожалуйста [напишите нам](https://github.com/wilfreedi/laravel-apifinder/issues/new/choose)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~102 days

Total

4

Last Release

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1355cb05e7c6c78d53a0aeab5ac3263138735659009cdaa4c9b7b21601d22c4f?d=identicon)[wilfreedi](/maintainers/wilfreedi)

---

Top Contributors

[![wilfreedi](https://avatars.githubusercontent.com/u/40352982?v=4)](https://github.com/wilfreedi "wilfreedi (6 commits)")

### Embed Badge

![Health badge](/badges/wilfreedi-laravel-apifinder/health.svg)

```
[![Health](https://phpackages.com/badges/wilfreedi-laravel-apifinder/health.svg)](https://phpackages.com/packages/wilfreedi-laravel-apifinder)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M992](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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