Download the PHP package smskin/clico without Composer
On this page you can find all versions of the php package smskin/clico. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package clico
Support library for cli.co url shorter service
Installation
Laravel
- composer require smskin/clico
- add lines to the config/services.php
'clico' => [ 'api_token'=>env('CLICO_API_TOKEN','') ]
- add CLICO_API_TOKEN to .env file
CLICO_API_TOKEN=[API TOKEN]
- You can use the CliCo facade
try { $link = CliCo::singleLink( (new LinkRequest()) ->setTargetUrl('https://msk.wed-expert.com') ->setUtm( (new UtmModel()) ->setPhone('7911111111111') ) ); } catch (HttpException $exception){ dd($exception); } catch (ValidationException $exception){ dd($exception); }
Any PHP service
- composer require smskin/clico
- You can use the library as any class
try { $link = (new CliCo( '[API TOKEN]' ))->singleLink( (new LinkRequest()) ->setTargetUrl('https://msk.wed-expert.com') ->setUtm( (new UtmModel()) ->setPhone('7911111111111') ) ); } catch (HttpException $exception){ dd($exception); } catch (ValidationException $exception){ dd($exception); }
Using
- singleLink
- multipleLinks
All versions of clico with dependencies
PHP Build Version
Package Version
The package smskin/clico contains the following files
Loading the files please wait ....