{"id":23108162,"url":"https://github.com/genxoft/curl","last_synced_at":"2025-07-09T22:37:49.212Z","repository":{"id":46093585,"uuid":"153632777","full_name":"genxoft/curl","owner":"genxoft","description":"Simpe PHP Curl wrapper","archived":false,"fork":false,"pushed_at":"2018-11-14T19:19:30.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T22:44:44.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genxoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-18T13:58:23.000Z","updated_at":"2022-07-18T05:52:03.000Z","dependencies_parsed_at":"2022-07-19T00:47:07.676Z","dependency_job_id":null,"html_url":"https://github.com/genxoft/curl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/genxoft/curl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genxoft%2Fcurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genxoft%2Fcurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genxoft%2Fcurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genxoft%2Fcurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genxoft","download_url":"https://codeload.github.com/genxoft/curl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genxoft%2Fcurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504616,"owners_count":23618831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T01:17:36.619Z","updated_at":"2025-07-09T22:37:49.191Z","avatar_url":"https://github.com/genxoft.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2PURUX2SHUD9E"],"categories":[],"sub_categories":[],"readme":"php-curl wrapper\n================\nSimple curl wrapper with REST methods support:\n\n - GET\n - HEAD\n - POST\n - PUT\n - PATCH\n - DELETE\n \nRequirements\n------------\n - PHP 5.4+\n - curl php extension \n\nInstallation\n------------\n\nThe preferred way to install this wrapper is through [composer](http://getcomposer.org/download/).\n\n```bash\nphp composer.phar require genxoft/curl \"*\"\n```\n\nor\n\n```bash\ncomposer require genxoft/curl \"*\"\n```\n\nQuick usage\n-----------\n\n### Quick get request\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\nuse genxoft\\curl\\Curl;\n\n$result = Curl::QuickGet(\"http://example.com\", [\"text_param\" =\u003e \"text_value\"]);\n\n```\n\nYou can see also Curl::QuickPost and Curl::QuickJson quick methods\n\nBasic usage\n-----------\n\n### Post request with Json data\n\nPerforming post request with Json data and query params\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\nuse genxoft\\curl\\Curl;\nuse genxoft\\curl\\Request;\n\n$request = new Request(\"http://example.com\");\n$request-\u003eaddGetParam(\"action\", \"save\")\n    -\u003esetJsonBody([\n        \"name\" =\u003e \"John Smith\",\n        \"age\" =\u003e 23\n    ]);\n$curl = new Curl($request);\n$response = $curl-\u003epost();\n\nif ($response === null) {\n    echo $curl-\u003egetLastError();\n} else {\n    if ($response-\u003eisSuccess()) {\n        echo \"Data saved\";\n    } else {\n        echo \"HTTP Error: \".$response-\u003egetStatusMessage();\n    }\n}\n\n```\n\n## Donate\n\u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2PURUX2SHUD9E\"\u003e\u003cimg src=\"https://www.paypalobjects.com/en_US/RU/i/btn/btn_donateCC_LG.gif\"\u003e\u003c/a\u003e\n\n## LICENSE\n\nThis curl wrapper is released under the [MIT license](https://github.com/walkor/workerman/blob/master/MIT-LICENSE.txt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenxoft%2Fcurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenxoft%2Fcurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenxoft%2Fcurl/lists"}