Download the PHP package voyanara/avito-laravel-client without Composer
On this page you can find all versions of the php package voyanara/avito-laravel-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package avito-laravel-client
Avito Laravel API PHP Client
This package is a client for the Avito API designed to simplify integration with the Avito platform from your Laravel applications. It provides a set of tools to work with the Avito API, allowing you to automate and streamline tasks related to managing listings, updating information, and obtaining statistics.
Why Use the API
The Avito API significantly simplifies working on the platform by allowing you to:
- Automate operations and actions you perform on Avito.
- Integrate Avito with your CRM system, ERP system for content management, messaging system for customer communication, or analytics system.
- Run your business more efficiently by enabling automatic data updates and obtaining statistics.
Features of the Avito API
With this client, you can:
- Communicate with Customers: Use ready-made integrations or create your own with the systems you need.
- Receive Autoload Information: Get data on autoload success and errors.
- Update Prices and Availability: Quickly update price and availability information on Avito from your system.
- Obtain Statistics: Analyze the effectiveness of your listings and get detailed statistics.
Specific methods for each category (e.g., Avito Real Estate or Avito Jobs) are available in the Avito API documentation.
Requirements
- PHP: ^8.3
- Laravel Framework: ^11.0
- Spatie Laravel Data: ^4.9
Ensure that your environment meets these requirements before proceeding with the installation.
Installation
Laravel Avito API Client can be installed via Composer:
The package will automatically register a service provider.
This package comes with a migration and a configuration file. You can publish them using the following Artisan command:
This is the default content of the config file that will be published as config/avito.php
Usage
You have several options for using the Avito API client in your Laravel application:
Using the Facade
To use the Avito API client via a facade, you can call methods directly on the AvitoClient facade.
Example:
If Laravel does not recognize the facade and you have defined it in composer.json under extra > laravel > aliases, make sure to import it in your file:
Using dependency injection
Alternatively, you can use dependency injection to access the Avito API client. This approach is recommended if you prefer to inject dependencies into your methods or constructors.