Tag Archiv: classes

Fast Curl

Package:
Fast Curl
Summary:
Send HTTP requests using Curl extension
Groups:
HTTP, PHP 5
Author:
Antonio López Vivar
Description:
This package can be used to send HTTP requests using Curl extension.

There are two classes: one for sending regular HTTP requests and another to send multiple parallel requests.

Both classes can send HTTP requests directly or via proxy, securely using SSL or not, setting the referrer URL, cookies, custom headers, etc...

Constructor will initialize curl handle with most common values althought you can set custom values like url, referrer, proxy, exec_mode, cookies, custom_headers, timeout and ssl. (By default you can use HTTP/HTTPS with need of caring about keys, certs, etc...)

Apart from constructor, EVERY CURLOPT can be set with a simple assignment instead of using curl_setopt() or any "obscure" method.

For instance:

$fc->url = 'http://phpclasses.org';

and retrieved like this:

$url = $fc->url;

There are two methods to execute requests:

exec(...) -> It returns a FRESH response.

fetch(...) -> It returns LAST response. (You can use a regex pattern to parse response).

FastCurlMulti is a container of FastCurl objects. Use it to make parallel requests.

For instance:

$fcm = new FastCurlMulti();
$fcm->add($fc1);
$fcm->add($fc2);
$fcm->exec();

Destructors will free any thing that has to be free. Do not worry.


DOC HERE -> http://tonikelope.es/fastcurl/doc/

DOWNLOAD HERE -> http://tonikelope.es/fastcurl/


Expire Class

Package:
Expire Class
Summary:
Generate an encrypted code that expires after time
Groups:
Cryptography, PHP 5, Time and Date
Author:
Kai Ming Choi
Description:
This class can be used to generate an encrypted code that expires after time.

It can generate a random code that includes an expiry time. The generated code is encrypted.

The class can also decrypt the generated code and verify it has not yet expired.


D3Css

Package:
D3Css
Summary:
Evaluate CSS styles with inheritance support
Groups:
PHP 5, Text processing
Author:
Tufan Baris YILDIRIM
Description:
This class can be used to evaluate CSS styles with inheritance support.

It takes a CSS file with special style inheritance syntax and generates a new CSS that evaluates the inherited styles based on the parent class definitions.

The resulting CSS may be cached in server files and be served in compressed format.


Image Edit Class

Package:
Image Edit Class
Summary:
Manipulate GIF, JPEG and PNG images
Groups:
Graphics, PHP 5
Author:
Kai Ming Choi
Description:
This class can be used to manipulate GIF, JPEG and PNG images.

It can load an image in GIF, JPEG and PNG formats and perform several types of operations.

Currently it can resize the image, render a text on the image, render a watermark image and apply several types of effects like blur, edge detection, sharpen, emboss, etc..

The resulting image can be saved to a file or displayed as the current script output also in GIF, PNG and JPEG formats.


Redirection Detector

Package:
Redirection Detector
Summary:
Check and retrieve the redirection URL of a page
Groups:
HTML, HTTP, PHP 5
Author:
Jarek
Description:
This class can be used to check and retrieve the redirection URL of a page.

It can check if accessing a given page redirects the browser to another page, either via response headers or meta tags.

The class returns the redirection URL if the browser would be redirected to another page.


Todo List

Package:
Todo List
Summary:
Manage a list of tasks of a to do list
Groups:
Content management, Databases, PHP 5
Author:
Michael J. Fuhrman
Description:
This package can be used to manage a list of tasks of a to do list.

It can create, update, delete and list tasks of a to do list stored in a database.

It can also manage folders that can contain different groups of to do tasks.


EasyCry

Package:
EasyCry
Summary:
Encrypt and decrypt data with a given key
Groups:
Cryptography, PHP 5
Author:
Oscar Gentilezza
Description:
This class can be used to encrypt and decrypt data with a given key.

It can take a string of data and encrypt it with a given key using pure PHP methods. The encrypted data can be compressed.

The class can also do the opposite, i.e. decompress and decrypt the previously encrypted data using the same key.

In Spanish:

Clase para php que usa un método propio, basico pero rápido:

Es un metodo simetrico por llave o contraseña, se puede usar un archivo como llave necesitando que el emisor/receptor tengan la misma llave.


UploadClass

Package:
UploadClass
Summary:
Validate and process uploaded files
Groups:
Files and Folders, HTTP, PHP 5
Author:
Kai Ming Choi
Description:
This class can be used to validate and process uploaded files.

It can take the $_FILES array with uploaded files data and validate it to check if file size are within allowed limits, if the MIME type and the file name extension is one of the accepted.

The validated file uploads can be moved to a given destination directory.


Task Types

Package:
Task Types
Summary:
Manage a list of types of tasks of a to do list
Groups:
Content management, Databases, PHP 5
Author:
Michael J. Fuhrman
Description:
This package can be used to manage a list of types of tasks of a to do list.

It can create, update, delete and list tasks types of a to do list stored in a database.

It can also manage folders that can contain different groups of to do task types.


Powered by Gewgley