PHPackages                             inolares/coreconnect - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. inolares/coreconnect

ActiveLibrary[HTTP &amp; Networking](/categories/http)

inolares/coreconnect
====================

coreConnect class for communication between client and InoCore

2.2.1(9mo ago)2115BSD-3-ClausePHPPHP &gt;=8.0

Since Jul 5Pushed 9mo agoCompare

[ Source](https://github.com/inolares/coreConnect)[ Packagist](https://packagist.org/packages/inolares/coreconnect)[ Docs](https://github.com/inolares/coreConnect)[ RSS](/packages/inolares-coreconnect/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

coreConnect - Helper classes to communicate with InoCore
========================================================

[](#coreconnect---helper-classes-to-communicate-with-inocore)

This composer package provides classes to easily communicate with an InoCore installation.

To make integration easy multiple classes are provided, each of them integrates for a specific requirement.

Currently there are helper classes to integrate with session based PHP sites, CLI commands and a Symfony 5.4+ compatible service class.

In addition you'll find implementations for other languages inside the contrib folder, currently only for PureBasic, but others are welcome! :)

Python users should take a look to our PIP package:

REQUIREMENTS
------------

[](#requirements)

- PHP 8.0 or newer
- InoCore installation with valid credentials
- PureBasic must be at leat 5.73 or newer
- For Symfony at least 5.4 must be used

INSTALLATION
------------

[](#installation)

Best way is to install everything via composer by executing the following line in your project directory:

`composer require inolares/coreconnect`

If you do not use composer or would like to install it manually just copy at least the base class "coreConnectBase.php" and one of the support classes that fit your environment. Of course you're completly free to implement your own class, just make sure that you extend from abstract class coreConnectBase.php.

How to use
----------

[](#how-to-use)

Please refer to the **ManualTests/** directory for some examples. The class should be pretty self-explanatory.

Here's a short explanation how to use it:

1. Create an object
2. Call the method "init($user,$pass,$host)" to setup credentials for InoCore
3. Start calling API methods like get("v1/ping") etc.

Symfony hints
-------------

[](#symfony-hints)

Copy the supplied file "examples/coreConnectService.php" to your "src/Service" folder. Now you can use DI to get a reference to the coreConnectService, i.e.:

```
public function __construct(coreConnectService $coreConnect) {
  parent::__construct();
  $coreConnect = $coreConnect;
  $coreConnect->init($user,$pass,$url);
}

```

Class methods
-------------

[](#class-methods)

The following methods must be implemented by you:

- setApiUrl() / getApiUrl()
- setApiUser() / getApiUser()
- setApiPass() / getApiPass()
- setExpires() / getExpires()
- setToken() / getToken()
- setJwtUser() / getJwtUser()

In addition, the following methods are implemented:

- init()
- clearCredentials()
- HasValidToken()
- FetchToken()
- call()
- get()
- post()
- put()
- delete()
- prepareResponse()
- getLastUrl()
- setCurlOpts() \[2.1.0+\]

PHPUnit tests
-------------

[](#phpunit-tests)

Some tests for PHPUnit are provided, to run these tests do the following:

```
$> composer install
$> vendor/bin/phpunit tests

```

Some hints
----------

[](#some-hints)

#### Only valid for coreConnect 2.1.0 or newer!

[](#only-valid-for-coreconnect-210-or-newer)

If you want to connect to an https-enabled InoCore instance using a self-signed certificate make sure to disable SSL peer verification first! To do this call this **BEFORE** init() is called:

```
$coreConnect->setCurlOpts([CURLOPT_SSL_VERIFYPEER => false]);

```

You can provide every CURLOPT\_\* constant here, but it is recommended to set only specific parameters for your specific setup and leave everything else at classes' default values! See  for a complete list.

coreConnect would merge it's own config setup with your provided values before performing the API request to InoCore. It is also possible to change parameters between multiple API calls just by calling setCurlOpts() right before the API call is performed.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance61

Regular maintenance activity

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~281 days

Total

5

Last Release

276d ago

PHP version history (2 changes)2.0.0PHP &gt;=7.0||^8.0

2.0.2PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e732c212248202a2d313166fdfa39737dc0b3eb9dc61bd50c234b57eae77162?d=identicon)[Inolares](/maintainers/Inolares)

---

Top Contributors

[![saschapfalz](https://avatars.githubusercontent.com/u/109347576?v=4)](https://github.com/saschapfalz "saschapfalz (12 commits)")[![SieGeL2k16](https://avatars.githubusercontent.com/u/18546281?v=4)](https://github.com/SieGeL2k16 "SieGeL2k16 (1 commits)")

---

Tags

apirestclassInoCore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inolares-coreconnect/health.svg)

```
[![Health](https://phpackages.com/badges/inolares-coreconnect/health.svg)](https://phpackages.com/packages/inolares-coreconnect)
```

###  Alternatives

[xendit/xendit-php

Xendit PHP SDK

189730.6k6](/packages/xendit-xendit-php)[angelleye/paypal-php-library

PHP wrapper for PayPal APIs

243440.9k](/packages/angelleye-paypal-php-library)[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1656.2k1](/packages/mediamonks-rest-api-bundle)[phrest/api

REST API Package for Phalcon PHP

304.2k](/packages/phrest-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
