Gavinho Labs

RESTful webservice with Slim Framework

Ingredients PHP 5 RESTful concepts Slim Framework Directions Download Slim Framework Extract and copy that to your folder Create the index.php <?php require_once 'Slim/Slim.php'; require_once 'extenser.class.php'; $app = new Slim(); /* RESTful GET – convert number to text long format * @type : NUMBER = 0 | CURRENCY_REAL = 1 | CURRENCY_DOLAR = 2 | [...]

Extenser API – RESTful webservice

I implemented a simple API for Extenser just for fun and educational proposal. Now, you can create your software or use it in your website as you want. URL: api.extenser.com.br Technology RESTful with Slim Framework PHP 5 Method GET URL: /:type/:separator/:value :type is: 0 (zero) for Cardinal numbers; 1 for Currency Brazilian Real; 2 for Currency Dolar; [...]

Debug PHP Web Application

At the time I started programming with PHP (2003) was very difficult to debug web applications. But now, it is very simple. What you need? A IDE - Eclipse PDT All-in-one A server - Zend Server Community Edition Download, install and open this applications above! How to setup the Eclipse? First, you need to create a new PHP project and your “home page”. [...]

Extenser beta was launched!

Extenser beta was launched. For now, only in portuguese. www.extenser.com.br What is the Extenser? Extenser is a webapp to convert number to its text format. For example: convert 29 to twenty nine. In this version Extenser convert: cardinal, currency (R$ and Dolar) and ordinal numbers. This project was made with: PHP 5.3 HTML 5 Javascript [...]

Ajax is easy!

First, what is ajax? “AJAX is the art of exchanging data with a server, and update parts of a web page – without reloading the whole page.” w3schools.com I used in this example: PHP 5.3 Javascript JQuery JSON HTML5 Which files did I use? index.php: Page that user request the data; getdata.php: PHP script to [...]

Bepuu Beta was launched

Today, I launched the first Bepuu beta. www.bepuu.com.br This project was made with: PHP 5.3 HTML 5 Javascript JSON/Ajax Bootstrap, from Twitter JQuery 1.7.1 MySQL APC (Alternative PHP Cache) Cron Job Features: Upload any type of file. Max size is 90MB. I still trying to setup the host to support until 300MB. The file is available [...]

Bootstrap – A good style to your page easily

Bootstrap is a very good open-source project. It is great for web developer without web design skills, like me! The approach used is very nice too. I’m using it in Bepuu project and I’m happy. It is very simple and clean. For example, Bepuu file upload before Bootstrap: Bepuu after Bootstrap: I did that with [...]

Nowadays – Big files from e-mail. You can!

Nowadays I’m working in a PHP application to “send” big files from e-mail. But this web application will provide a mechanism to upload the file, send an email with download information, and finally provide a link to download the sent file. It is very simple and free! My goal is publish the Alfa version in [...]