PHP Classes

File: tests/test.php

Recommend this page to a friend!
  Classes of Jackson Morais   PHP Twitter Share Button   tests/test.php   Download  
File: tests/test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Twitter Share Button
Generate HTML for button to share page on Twitter
Author: By
Last change:
Date: 4 years ago
Size: 361 bytes


Class file image Download
require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload
use Sharer\Tweet;

$tw = new Tweet();

$btn = $tw->button(
"I dowloaded 'twitter-sharer' with composer!",
'Composer', 'Packagist', 'GitHub', 'OpenSource'