Download the PHP package inolares/coreconnect without Composer

On this page you can find all versions of the php package inolares/coreconnect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package coreconnect

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: https://pypi.org/project/core-connect/

REQUIREMENTS

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

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

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.: `

Class methods

The following methods must be implemented by you:

In addition, the following methods are implemented:

PHPUnit tests

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

Some hints

Only valid for coreConnect 2.1.0 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:

` 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 https://www.php.net/manual/de/function.curl-setopt.php 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.


All versions of coreconnect with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inolares/coreconnect contains the following files

Loading the files please wait ....