PHP Classes

PHP Creative Commons Logo: Display a logo link for a Creative Commons License

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 65 This week: 1All time: 10,349 This week: 560Up
Version License PHP version Categories
cclogo 1.0.0Public Domain5HTML, PHP 5, Graphics, Tools
Description 

Author

This class can be used to display a logo link for a Creative Commons License.

It can take a string that identifies the type of creative commons license and returns the respective logo image.

The logo image is returned as HTML with the license logo image as a link to the respective Creative Commons license page.

Innovation Award
PHP Programming Innovation award winner
March 2021
Winner
Creative Commons is a popular license used by many developers to release their software to the public and allow royalty free used with minimal licensing requirements.

There are several variants of the Creative Commons licenses.

This class provides a solution to display the logo image of a Creative Commons license variant in a Web page with a link to the respective page on the Web with the details of that license.

This may be useful to many developers that display the creative commons license logo link in a Web page of their Open Source projects.

Manuel Lemos
Picture of Mundo Genesys Development
  Performance   Level  
Name: Mundo Genesys ... <contact>
Classes: 2 packages by
Country: Mexico Mexico
Age: 58
All time rank: 440956 in Mexico Mexico
Week rank: 416 Up8 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Example

<?php


ini_set
('display_errors', true);
error_reporting(E_ERROR | E_PARSE | E_NOTICE | E_WARNING);
include_once(
'Classcommon.php');

$license = new CCLicense(1,1,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(1,1,2);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(1,2,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(1,2,2);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(2,1,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(2,1,2);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(2,2,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(2,2,2);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(3,1,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(3,1,2);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(3,2,1);
echo
$license->logo;
echo
$license->url;
$license = new CCLicense(3,2,2);
echo
$license->logo;
echo
$license->url;
?>



  Files folder image Files  
File Role Description
Plain text file Classcommon.php Class Class source
Accessible without login Plain text file demoCommon.php Example Example script

 Version Control Reuses Unique User Downloads Download Rankings  
 100%7
Total:65
This week:1
All time:10,349
This week:560Up