fgsl/curlphp

PHP proxy for curl aimed to API testing

1.0.0 2023-06-02 17:44 UTC

This package is auto-updated.

Last update: 2024-10-31 00:22:02 UTC


README

A shortcut to curl thinked about APIs

Use

Linux distributions

If php is installed in /usr/bin, you can run direclty

curlphp.phar [URL] [DATA] [TOKEN] [METHOD]

DATA, TOKEN and METHOD are optional, but if must be passed in this order.

If you don't pass URL, the command prints a guideline text.

Alternatively, you can run

php curlphp.phar [URL] [DATA] [TOKEN] [METHOD]

or create a symlink to your php in /usr/bin.

You can move curlphp.phar to /usr/bin as curlphp, so you can run it as a command:

curlphp [URL] [DATA] [TOKEN] [METHOD]

Windows

if php.exe is declared in PATH environment variable, you can run it so:

php.exe curlphp.phar [URL] [DATA] [TOKEN] [METHOD]

You can create a .BAT file that contains this call.