rtablada / slim-post
A super slim POST CURL wrapper
Installs: 51
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rtablada/slim-post
This package is not auto-updated.
Last update: 2025-10-06 15:34:33 UTC
README
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.
Note: this package sends to a url with a POST payload, and that is it!
Installation
This package is distributed using Packagist and Composer.
To your composer.json requires object add
"Rtablada/slim-post" : "*"
Run composer install
or composer update
Using this package
In your sample file after autoloading SlimPost is super easy to use!
<?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.