Package:
Summary:
Get statistics and beautify text strings
Groups:
Author:
Description:
This class can be used to get statistics and beautify text strings.
It can analyze a given text string and get the total length, the number of non-whitespace characters, number of letters, number of spaces and tabs, number of symbol characters, number of words and number of sentences.
The class can also beautify the text by removing exceeding spaces, punctuation and line breaks.
Package:
Summary:
Validate and process file uploads
Groups:
Author:
Description:
This class can be used to validate and process file uploads.
It can check if the uploaded files have one of the allowed file name extensions and MIME types, and does not exceed the allowed file limits.
Image files are opened to verify they really contain image data of the determined format.
The class can move the uploaded files to a given directory if it exists and has write permissions.
The idiom of the error messages is configurable from a list of supported idioms.
Package:
Summary:
Read and sort CSV file data into array
Groups:
Author:
Description:
This class can be used to read and sort CSV file data into array.
It can open a CSV file and read its data into a bidimensional array.
The retrieved data array can also be sorted.
In Portuguese:
Uma classe simples para a conversão de arquivos CSV para array.
Os arquivos CSV devem conter os cabeçalhos.
Package:
Summary:
Send HTTP requests using Curl extension
Groups:
Author:
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/
Package:
Summary:
Generate an encrypted code that expires after time
Groups:
Author:
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.
Package:
Summary:
Evaluate CSS styles with inheritance support
Groups:
Author:
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.
Package:
Summary:
Manipulate GIF, JPEG and PNG images
Groups:
Author:
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.
Package:
Summary:
Check and retrieve the redirection URL of a page
Groups:
Author:
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.