Category Archives: Classes

Simple and small DB class

Package:
Simple and small DB class
Summary:
Access to a MySQL database using a singleton
Groups:
Databases, Design Patterns, PHP 5
Author:
sifat kabir
Description:
This class can be used to access to a MySQL database using a singleton.

It creates a single instance of the class that can establish MySQL database connections, execute SQL queries, retrieve the number of result rows and retrieve the results in a single array.


First Person View

Example
Package:
First Person View
Summary:
Browse images like a first person view game
Groups:
Content management, Games, Graphics
Author:
Oscar Dias
Description:
This class can be used to browse images like a first person view game.

It takes as parameter the definition of a map virtual place with the positions and images that the user would see on in each place of the map depending on the rotation angle.

The class takes the current user position on the map and the rotation angle and determine which image he should be viewing.

It can also determine if the user can go ahead, backwards, left, right, turn right or turn left.


Smooth Decrease Class

Package:
Smooth Decrease Class
Summary:
Generate a series of values that decrease smoothly
Groups:
Math, PHP 5
Author:
Kai Ming Choi
Description:
This class can be used to generate a series of numbers that decrease smoothly.

It takes as arguments an initial value and the number of steps of numbers to be generated.

The class generates a series of numbers equal to the number of specified steps that decrease from the initial value until it reaches zero, using quadratic equations to determine the approximation of each step.


Paginatorfer

Package:
Paginatorfer
Summary:
Show paginated listings updated using AJAX
Groups:
AJAX, HTML, PHP 5
Author:
Fernando castro
Description:
This class can be used to show paginated listings updated using AJAX.

It takes as arguments the an array of data entries to display in the pages and the limit number of entries to display per page.

The class generates HTML and JavaScript for navigation links to update the listing without reloading the page when the links are clicked.


DB Populator

Package:
DB Populator
Summary:
Populate a MySQL database with random data
Groups:
Databases, PHP 5, Testing
Author:
Rafael Jaques
Description:
This class can be used to populate a MySQL database with random data.

It can scan the list of tables and fields of a MySQL database and generate SQL INSERT statements that will fill the tables with records with random data.

The class tries to populate each record field with values that seem appropriate based on the field name.

Then it can either execute the generated SQL statements or saved them to a file.


IP Net Calculator

Package:
IP Net Calculator
Summary:
Compute the common mask from multiple IP addresses
Groups:
Networking, PHP 5
Author:
Alexander Over
Description:
This class can be used to compute the common mask from multiple IP addresses.

It takes two or more IP addresses and determines the bits with the common values in order to determine what should be the applicable network address mask.

The class supports network addresses either in the IP version 4 and version 6 formats.


Image Crop

Screenshot of the class working
Package:
Image Crop
Summary:
Visual editor to let the user crop images
Groups:
AJAX, Graphics, PHP 5
Author:
Carlson A. Soares
Description:
This package can be used to implement a visual editor to let the user crop images.

It generates HTML, JavaScript and CSS for an user interface to let the user click on an image and define an area of the image to be cropped.

A PHP class of the package can crop the image as defined by the user and save the cropped image to a given file.

In Portuguese:

Essa classe usa uma imagem de origem[jpg, gif, png] para gerar um thumb de uma regiĆ£o selecionada pelo usuario, usando php e post via ajax.


Guitar Chord API class

Package:
Guitar Chord API class
Summary:
Search for guitar chords using Guitar Chord API
Groups:
Audio, PHP 5, Web services
Author:
Arturs Sosins
Description:
This class can be used to search for guitar chords using Guitar Chord API.

It can send HTTP request to the Guitar chord API Web server to find chord variations based on given data about chord by specifying the chord name, chord modification, or/and string/fret combination.


Powered by Gewgley