开源diva / zzcurl
本包的最新版本(v1.0.1)没有可用的许可证信息。
允许您轻松发送POST数据。
v1.0.1
2015-01-07 18:20 UTC
This package is not auto-updated.
Last update: 2024-09-24 02:47:28 UTC
README
允许您轻松发送POST数据。
示例
<?php require 'vendor/autoload.php'; use Utility\Data; use Utility\Post; try { $data = new Data([ 'test_field' => 'test data', 'test_field_2' => 'test data 2' ]); $post = new Post('http://www.webomg.com'); $post->setData($data); $response = $post->send(); // Returns true if successful } catch(Exception $exception) { echo $exception->getMessage(); }