2017 © Pedro Peláez
 

library slim-post

A super slim POST CURL wrapper

image

rtablada/slim-post

A super slim POST CURL wrapper

  • Wednesday, May 1, 2013
  • by rtablada
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

As lightweight as it gets.

In writing a few projects, I found that many of the HTTP request libraries were a bit heavy for what I needed. The answer was to create a super-lightweight CURL wrapper that would do the job., (*1)

Note: this package sends to a url with a POST payload, and that is it!, (*2)

Installation

This package is distributed using Packagist and Composer., (*3)

To your composer.json requires object add, (*4)

"Rtablada/slim-post" : "*", (*5)

Run composer install or composer update, (*6)

Using this package

In your sample file after autoloading SlimPost is super easy to use!, (*7)

<?php
use Rtablada\SlimPost\SlimPost;

$url = "http://somewebsite.co";
$data = array(
    'name'  => 'Bob',
    'age'   => 25
);

$results = SlimPost::create($url, $data)->send();

The results is untouched and ready for you to read however you see fit., (*8)

The Versions

01/05 2013

dev-master

9999999-dev

A super slim POST CURL wrapper

  Sources   Download