2017 © Pedro PelĂĄez
 

library phramework

Some PHP classes

image

piffall/phramework

Some PHP classes

  • Sunday, May 17, 2015
  • by piffall
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

phramework

phramework is a collection of PHP classes that I use frequently., (*1)

Installation

Go to yout project directory and install the package., (*2)

# Install composer if is not installed
curl -sS https://getcomposer.org/installer | php

# Install phramework using composer
php composer.phar require piffall/phramework

Now, require Composer's autoloader in your aplication., (*3)

require 'vendor/autoload.php';

Curl

Curl is a curl wrapper. Here is an example., (*4)

use PHK\Curl as Curl;

// New instance
$c = new Curl();

// GET
$c->setUrl('http://yourdomain.net');
$c->get();

// POST
$c->setUrl('http://yourdomain.net/action/');
$c->setDataFields(array('username'=>'user', 'password'=>'*****'));
$c->post();

// Result
$html = $c->getLastReturn();

// Reset Object
$c->reset();

// POST Multipart
$c->setUrl('http://yourdomain.net/action/');
$c->setDataFields(array('username'=>'user', 'password'=>'*****'), true);

// Errors
$err_no = $c->getErrorNumber();
$err_str = $c->getErrorString();

The Versions

17/05 2015

dev-master

9999999-dev

Some PHP classes

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

by CristĂČfol Torrens Morell

17/05 2015

v1.0.1

1.0.1.0

Some PHP classes

  Sources   Download

The Requires

  • php >=5.4.0

 

17/05 2015

v1.0

1.0.0.0

  Sources   Download