2017 © Pedro Peláez
 

library amocrm-api-laravel

An AmoCRM api bridge for Laravel 5

image

bigperson/amocrm-api-laravel

An AmoCRM api bridge for Laravel 5

  • Tuesday, June 5, 2018
  • by bigperson
  • Repository
  • 2 Watchers
  • 1 Stars
  • 156 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 420 % Grown

The README.md

AmoCRM API Laravel Bridge

amoCRM, (*1)

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage License StyleCI, (*2)

Описание

Данный пакет это ServiceProvider для Laravel 5 предоставляющий интеграцию с API amoCRM используя библиотеку linkprofit-cpa/amocrm-api. Пакет позволяет зарегистрировать все сервисы из родительской библиотеки для использования сервисов через DI, без необходимости создавать каждый раз RequestHandler., (*3)

Установка

Laravel 5.5+

Убедитесь, что используете хотя бы PHP 7.1, (*4)

  • composer require bigperson/amocrm-api-laravel
  • php artisan vendor:publish --tag=amocrm-api

Laravel 5.4 или ранее

  • composer require bigperson/amocrm-api-laravel
  • Добавьте сервис провайдер в ваш app/config/app.php файл:
'providers' => [
    // ...
    Bigperson\AmoCrmApi\AmoCrmApiServiceProvider::class,
]
  • php artisan vendor:publish --tag=amocrm-api

Пакет требует указания параметров подключения к API amoCRM. Указать их можно в файле конфигурации. Для этого необходимо опубликовать файл конфигурации., (*5)

Эта команда создаст файл config/amocrm-api.php в котором указаны эти данные. Лучше всего использовать переменные окружения добавив файл .env, (*6)

AMO_DOMAIN=domain
AMO_LOGIN=email@examle.com
AMO_HASH=RfwPKjHdlNC5UFrB2F8NRfwPKjHdlNC5UFrB2F8N

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

После установки пакета вы можете использовать все сервисы через DI контейнер Laravel:, (*7)

...
use linkprofit\AmoCRM\services\CatalogElementService;
...

class Controller extends BaseController
{
    public function getCatalogElements(CatalogElementService $service)
    {
        $catalogElements = $service->lists();
        dd($catalogElements);
    }
}

Более подробнее о возможностях сервисов и документацию по ним вы найдете в описании пакета linkprofit-cpa/amocrm-api., (*8)

Лицензия

This project is licensed under the MIT License - see the LICENSE.md file for details, (*9)

The Versions

05/06 2018

dev-master

9999999-dev

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

05/06 2018

0.1.4

0.1.4.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

17/05 2018

0.1.3

0.1.3.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

17/05 2018

0.1.2

0.1.2.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

17/05 2018

dev-analysis-qMVgQO

dev-analysis-qMVgQO

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

17/05 2018

0.1.1

0.1.1.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

16/05 2018

0.1.0

0.1.0.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

15/05 2018

0.0.2

0.0.2.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

15/05 2018

dev-analysis-8KlWPe

dev-analysis-8KlWPe

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev

15/05 2018

0.0.1

0.0.1.0

An AmoCRM api bridge for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Kartsev