lamoni/restlyte

A simple REST client library implemented in PHP.

Installs: 83

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 1

pkg:composer/lamoni/restlyte

v1.0.0 2015-01-07 11:07 UTC

This package is not auto-updated.

Last update: 2025-10-07 08:30:11 UTC


README

RESTLyte is a simple REST client library implemented in PHP.

Examples

$rest = new RESTLyte(
    "https://spaceexample.io",  // Server
    "username",                 // Username
    "password",                 // Password
    false,                      // SSL Checking?
    [                           // Array of custom HTTP headers to send with the API call
        'Cache-Control: no-cache'
    ]
);

$response = $rest->get(
    '/api/space/device-management/devices', // API call
    'JSON',                                 // Response handler (RAW | JSON | XML)
    'application/vnd.net.juniper.space.device-management.devices+json;version=1' // "Accept: "
);