PHPackages                             reprostar/mpcl-connector-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. reprostar/mpcl-connector-php

ActiveLibrary[API Development](/categories/api)

reprostar/mpcl-connector-php
============================

PHP library for the MyPCList API

2.0.0(5y ago)292MITPHPPHP &gt;=5.6.0

Since Oct 7Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Reprostar/mpcl-connector-php)[ Packagist](https://packagist.org/packages/reprostar/mpcl-connector-php)[ Docs](https://mypclist.net)[ RSS](/packages/reprostar-mpcl-connector-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

MyPCList API connector library for PHP
======================================

[](#mypclist-api-connector-library-for-php)

Official implementation of MyPCList V1 API connector, compatible with PHP 5.6 and later. This library contains a connector class used to communicate with an endpoint and classes for all API-accessible MPCL entities.

### Installation

[](#installation)

Package can be easily installed via Composer:

```
composer require reprostar/mpcl-connector-php

```

### Authentication

[](#authentication)

In the legacy version of MyPCList, the API credentials were split into separate key and token. In the future version of the API there will be a single-string token for authorization, so usage of separate credentials is now discouraged.

The new format of API\_TOKEN consists of key and token, joined by a colon ':', for example: `YYY:XX**************************XXXX`

This combined token can be used as a first argument for MpclConnector or passed through 'api\_token' parameter.

### Sample usage

[](#sample-usage)

```
