GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - orgmanager/php-orgmanager-api: A PHP client for the OrgManager API

BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.scrutinizer.yml
.scrutinizer.yml
 
 
.travis.yml
.travis.yml
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

PHP OrgManager API Client

Codacy Badge Latest Version on Packagist Software License Build Status Total Downloads

This package makes it easy to interact with the OrgManager API.

Installation

You can install the package via composer:

composer require orgmanager/orgmanager-api

Usage

You must pass a Guzzle client and the API token to the constructor of OrgManager\ApiClient\OrgManager.

$orgmanager = new \OrgManager\ApiClient\OrgManager('YOUR_ORGMANAGER_API_TOKEN');

or you can skip the token and use the connect() method later

$orgmanager = new \OrgManager\ApiClient\OrgManager();

$orgmanager->connect('YOUR_ORGMANAGER_API_TOKEN');

Get User info

$orgmanager->getUser();

Get User Orgs

$orgmanager->getOrgs();

Get Org info

$orgmanager->getOrg('ORG_ID');

Change Org Password

$orgmanager->changeOrgPassword('ORG_ID', 'NEW_PASSWORD');

Update Org

$orgmanager->updateOrg('ORG_ID');

Delete Org

$orgmanager->deleteOrg('ORG_ID');

Get Stats

$orgmanager->getStats();

Renenerate Token

$orgmanager->regenerateToken($set);

where $set is false if you don't want to use the new token on future requests.

Get the Guzzle Client

$orgmanager->getClient();

Set the Guzzle Client

$client = new \GuzzleHttp\Client(); // Example Guzzle client
$orgmanager->setClient($client);

where $client is an instance of \GuzzleHttp\Client.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

  • Miguel Piedrafita
  • All Contributors

License

The Mozilla Public License 2.0 (MPL-2.0). Please see License File for more information.

About

A PHP client for the OrgManager API

Topics

apiapi-clientclientguzzleorgmanagerorgmanager-apipackagistphpphp-client

Resources

Readme
MPL-2.0 license
Activity
Custom properties

Stars

5 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.