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: 3 years ago
Size: 361 bytes
 

Contents

Class file image Download
<?php
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!",
   
'[none]',
   
'https://github.com/Jkmorais/twitter-sharer',
    Array(
       
'Composer', 'Packagist', 'GitHub', 'OpenSource'
   
)
);

print
$btn;

For more information send a message to info at phpclasses dot org.