carloscsrm / sharelaravel
Share content in Facebook and Twitter
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2024-11-09 17:40:26 UTC
README
Plugin for Laravel 4 just to share content in Facebook and Twitter
Installation
- Add
carloscsrm/sharelaravel
tocomposer.json
.
"carloscsrm/sharelaravel": "dev-master"
-
Run composer update to pull down the latest version of Share-Laravel.
-
Now open up app/config/app.php and add the service provider to your providers array.
'providers' => array( 'Carloscsrm\Sharelaravel\SharelaravelServiceProvider', ),
The Alias is automatically added by the system, you don't need add it manually. The alias is Sharelaravel
Configuration
Run php artisan config:publish carloscsrm/sharelaravel
and modify the config file with your own information.
Usage
For using this package you can add this code in your templates
{{Sharelaravel::render($your_url, array('twitterVia'=>'your_twitter_account', 'textToShare'=>'Your text for twitter')) }}