Download the PHP package honey-comb/companies without Composer
On this page you can find all versions of the php package honey-comb/companies. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download honey-comb/companies
More information about honey-comb/companies
Files in honey-comb/companies
Download honey-comb/companies
More information about honey-comb/companies
Files in honey-comb/companies
Vendor honey-comb
Package companies
Short Description Honeycomb company package
License MIT
Homepage https://github.com/honey-comb/companies
Package companies
Short Description Honeycomb company package
License MIT
Homepage https://github.com/honey-comb/companies
Please rate this library. Is it a good library?
Informations about the package companies
HoneyComb companies package
Description
HoneyComb CMS Companies package, stores simple information about company. Currently contains integration with (rekvizitai.vz.lt) for automated company data retrieval for Lithuanian companies.
Requirement
- php:
^7.1
-
laravel:
^5.6
Installation
Begin by installing this package through Composer.
or
Laravel integration
Firstly register the service provider and Facade by opening config/app.php
HoneyComb\Companies\Providers\HCCompanyServiceProvider::class,
Usage
In the .env
file please add these parameters:
HC_COMPANY_REKVIZITAI_API_KEY=KEY
HC_COMPANY_REKVIZITAI_CLIENT_ID=ID
Through the help of HoneyComb\Companies\Services\HCCompanyService
call findByCode('CODE')
function
EXAMPLE
<?php
namespace HoneyComb\Companies\Http\Controllers\Admin;
use HoneyComb\Companies\Services\HCCompanyService;
use HoneyComb\Core\Http\Controllers\HCBaseController;
class HCCompanyController extends HCBaseController
{
/**
* @var HCCompanyService
*/
private $service;
public function __construct(HCCompanyService $service)
{
$this->service = $service;
}
public function findByCode(string $code): ?HCCompany
{
return $this->service->findByCode($code);
}
public function findAllFromRekvizitai(string $title): array
{
return $this->service->searchByTitleFromRekvizitai($title);
}
}
All versions of companies with dependencies
PHP Build Version
Package Version
The package honey-comb/companies contains the following files
Loading the files please wait ....