PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 65 All time: 10,389 This week: 206Up
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: 59
All time rank: 441356 in Mexico Mexico
Week rank: 164 Up4 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 (2)  
File Role Description
Plain text file Classcommon.php Class Class source
Accessible without login Plain text file demoCommon.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 100%7
Total:65
This week:0
All time:10,389
This week:206Up