Download the PHP package c975l/sharebuttons-bundle without Composer
On this page you can find all versions of the php package c975l/sharebuttons-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sharebuttons-bundle
ShareButtonsBundle
ShareButtonsBundle does the following:
- Defines buttons to share web page on different tools.
This Bundle relies on the use of Bootstrap and Fontawesome.
ShareButtonsBundle dedicated web page.
ShareButtonsBundle API documentation.
Bundle installation
Step 1: Download the Bundle
Use Composer to install the library
Step 2: Enable the Routes
Then, enable the routes by adding them to the /config/routes.yaml
file of your project:
Step 3: Integration with your website
It is strongly recommended to use the Override Templates from Third-Party Bundles feature to integrate fully with your site.
For this, simply, create the following structure app/Resources/c975LExceptionCheckerBundle/views/
in your app and then duplicate the file layout.html.twig
in it, to override the existing Bundle file, then apply your needed changes, such as language, etc.
In layout.html.twig
, it will mainly consist to extend your layout and define specific variables, i.e. :
Step 4: Made use of assets
To use styles and javascript you have to include them from public/css/
and public/js/
:
Step 5: Define configuration
You need to define the Role needed to access data and if you wish to save statistics of shares. You can do this by using sharebuttons_config
Route or directly in your /config/config_bundles.yaml
, in this case, do not forget to clear the cache after. Options are described in the file /Resources/config/bundle.yaml
.
How to use
ShareButtonsBundle use Fontawesome for icons, their svgs are included in the bundle to avoid having to link to fontawesome css/js.
ShareButtonsBundle is quite easy to use. You simply have to add the following code in your Twig templates, that uses the provided Twig Extension:
Use the Route sharebuttons_dashboard
(url: "/sharebuttons/dashboard") to access Dashboard.
Available networks
You can use any the following name, in the Twig Extension explained above, for its corresponding network:
- blogger
- buffer
- delicious
- evernote
- skype
- stumbleupon
- tumblr
- wordpress
If this project help you to reduce time to develop, you can sponsor me via the "Sponsor" button at the top :)
All versions of sharebuttons-bundle with dependencies
c975l/config-bundle Version *
c975l/email-bundle Version *
c975l/services-bundle Version *