Package Data | |
---|---|
Maintainer Username: | yedincisenol |
Maintainer Contact: | o@yedincisenol.com (Ibrahim S. Orencik) |
Package Create Date: | 2017-09-27 |
Package Last Update: | 2021-01-07 |
Home Page: | http://yeni.co |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:20:31 |
Package Statistics | |
---|---|
Total Downloads: | 354,728 |
Monthly Downloads: | 4,424 |
Daily Downloads: | 170 |
Total Stars: | 27 |
Total Watchers: | 5 |
Total Forks: | 16 |
Total Open Issues: | 0 |
Create Firebase Dynamic Links from Php and Laravel
composer require "yedincisenol/dynamic-links"
$dynamicLink = new yedincisenol\DynamicLinks\DynamicLinks([
'api_key' => 'apiKeyFromFirebaseProject',
'dynamic_link_domain' => 'dynami-domain-from-dynamic-links.goo.gl
]);
composer require "yedincisenol/dynamic-links"
config/app.php
'providers' => [
yedincisenol\DynamicLinks\LaravelServiceProvider::class
],
copy theese parameters to your project .env and fill
FIREBASE_API_KEY=
FIREBASE_DYNAMIC_LINKS_DOMAIN=
$link = new yedincisenol\DynamicLinks\DynamicLink('http://yeni.co/');
$shortLink = $dynamicLink->create($link, 'UNGUESSABLE');
php artisan vendor:publish --tag=dynamic-links
$dynamicLink = new yedincisenol\DynamicLinks\DynamicLinks([
'api_key' => $apiKey,
'dynamic_link_domain' => $dynamicLinkDomain
]);
$link = new yedincisenol\DynamicLinks\DynamicLink('http://yeni.co/');
$shortLink = $dynamicLink->create($link, 'UNGUESSABLE');
Advanced usage: example.php
Run
phpunit