donetechno / dynamic-links-php5.6
Firebase Dynamic Links for Php and Laravel
1.0.0
2020-12-09 15:56 UTC
Requires
- ext-curl: *
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ^5.4
Requires (Dev)
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2025-03-28 10:18:32 UTC
README
Create Firebase Dynamic Links from Php and Laravel
- Php Installation
- Configuration
- Laravel Installation
- Usage examples
composer require "yedincisenol/dynamic-links"
$dynamicLink = new yedincisenol\DynamicLinks\DynamicLinks([
'api_key' => 'apiKeyFromFirebaseProject',
'dynamic_link_domain' => 'dynami-domain-from-dynamic-links.goo.gl
]);
Laravel Install
- Add composer
composer require "yedincisenol/dynamic-links"
- Add service provider
config/app.php
'providers' => [ yedincisenol\DynamicLinks\LaravelServiceProvider::class ],
- Publish Config file Publish Config for Laravel
php artisan vendor:publish --tag=dynamic-links
Usage
$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
Test
Run
phpunit