Skip to content

RyanWaterston/restlyte

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTLyte

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: "
);

About

A simple REST client implemented in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%