Download the PHP package target365/sdk without Composer
On this page you can find all versions of the php package target365/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download target365/sdk
More information about target365/sdk
Files in target365/sdk
Informations about the package sdk
Strex AS is a Norwegian payment and SMS gateway (Strex Connect) provider. Strex withholds an e-money license and processes more than 70 million transactions every year. Strex has more than 4.2 mill customers in Norway and are owned by the Norwegian mobile network operators (Telenor, Telia and Ice). Strex Connect is based on the Target365 marketing and communication platform.
Target365 SDK for PHP
Getting started
To get started, please click here: https://strex.no/strex-connect#Prispakker and register your organisation. For the SDK please send us an email at [email protected] containing your RSA public key in PEM-format. You can generate your RSA public/private key-pair using openssl like this:
Use openssl to convert it to pk8 format which PHP uses.
The file private.key
should look something like this:
Please note that when using the private key in PHP you must remove all newline characters so the whole private key is in one line.
Use this openssl command to extract the public key:
You can then send us the public.key
file. The file should look something like this:
For more details on using the SDK we strongly suggest you check out our PHP User Guide.
Composer
Test Environment
Our test-environment acts as a sandbox that simulates the real API as closely as possible. This can be used to get familiar with the service before going to production. Please be ware that the simulation isn't perfect and must not be taken to have 100% fidelity.
Url: https://test.target365.io/
Production Environment
Our production environment is a mix of per-tenant isolated environments and a shared common environment. Contact [email protected] if you're interested in an isolated per-tenant environment.
Url: https://shared.target365.io/
Authors and maintainers
Target365 ([email protected])
Issues / Bugs / Questions
Please feel free to raise an issue against this repository if you have any questions or problems.
Private Key
The Target365 PHP SDK only allows RSA private keys. The private key should be passed to the
\Target365\ApiSdk\ApiClient
constructor. The key can optionally include -----BEGIN RSA PRIVATE KEY-----
parts. You must remove all newline characters from the private key when using the PHP SDK.
Contributing
New contributors to this project are welcome. If you are interested in contributing please send an email to [email protected].
Automated Test
Automated tests use PHPUnit framework. Here are some suggested steps to run automated tests.
- Clone repository.
- Change to repository directory.
- (Optional) use vagrant file as
tests/Vagrantfile
- Run
composer install
.- Running composer will prompt you to enter some required details which will
be stored in a file called
tests/secrets.yml
. - When entering
private_key
enter the key as a one line string and exclude the-----BEGIN RSA PRIVATE KEY-----
parts.
- Running composer will prompt you to enter some required details which will
be stored in a file called
- Run PHPUnit.
./vendor/bin/phpunit
License
This library is released under the MIT license.
All versions of sdk with dependencies
guzzlehttp/guzzle Version ~7.0
phpseclib/phpseclib Version ~3.0
phpseclib/phpseclib2_compat Version ~1.0
psr/log Version ^1.0 || ^3.0