PHP code example of osayaweventures / share-links

1. Go to this page and download the library: Download osayaweventures/share-links library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

osayaweventures / share-links example snippets

 bash
php artisan vendor:publish --tag="share-links-views"

{{ share_links:dump }}

[
  "facebook" => "https://www.facebook.com/sharer/sharer.php?u=urlencoded"
  "twitter" => "https://twitter.com/intent/tweet?url=urlencoded"
  "linkedin" => "https://www.linkedin.com/shareArticle?mini=true&url=urlencoded"
  "whatsapp" => "https://api.whatsapp.com/send?text=urlencoded"
]