PHP Classes

PHP Golden Rectangle Generator: Create a rectangle with perfect proportions

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: 109 All time: 9,658 This week: 524Up
Version License PHP version Categories
v_ 1.0.0Freeware5PHP 5, Graphics
Description 

Author

This class can be used to create a rectangle with perfect proportions.

It takes the height of a rectangle to be generated and creates an image with a width that is equal to the height multiplied by a golden number factor.

The generated image is served as the current script output in PNG format.

In Spanish:

Brinda un rectángulo con las proporciones perfecta.

Crea un rectángulo con las proporciones perfectas segun el numero de oro usadas en la arquitectura. Pasando como parametro uno de los lados del rectángulo el script devuelve el otro lado con la proporción correcta.

Innovation Award
PHP Programming Innovation award nominee
February 2020
Number 5
The golden rectangle is a rectangle that has a proportion ratio between their sides in such a way that it can that it is perfect for activities like architecture of buildings or artistic paintings to achieve balance aesthetic beauty.

This class can create a rectangle with perfect proportions based on the golden rectangle algorithm.

Manuel Lemos
Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 9 packages by
Country: Cuba Cuba
Age: 31
All time rank: 30508 in Cuba Cuba
Week rank: 180 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
include 'proportion.php';
$obj=new proportion;
echo
$obj->prop(300);
?>


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file Example1.php Example Example script
Plain text file proportionClass.php Class Main class

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 Unique User Downloads Download Rankings  
 0%
Total:109
This week:0
All time:9,658
This week:524Up