PHPackages                             target365php70/sdk - 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. target365php70/sdk

ActiveLibrary[API Development](/categories/api)

target365php70/sdk
==================

PHP 7.0 support for: Target365 SDK

0299PHP

Since Oct 20Pushed 3y agoCompare

[ Source](https://github.com/target365php70/sdk-for-php)[ Packagist](https://packagist.org/packages/target365php70/sdk)[ RSS](/packages/target365php70-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Strex](https://github.com/Target365/sdk-for-php/raw/master/strex.png "Strex")](https://github.com/Target365/sdk-for-php/raw/master/strex.png)
------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

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
---------------------

[](#target365-sdk-for-php)

[![License](https://camo.githubusercontent.com/4a47a8d0ccf74447370cae39573882c6142546348c99cb44392349512a5b327c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5461726765743336352f73646b2d666f722d6e65742e7376673f7374796c653d666c6174)](https://opensource.org/licenses/MIT)

### Getting started

[](#getting-started)

To get started, please click here:  and register your organisation. For the SDK please send us an email at  containing your RSA public key in PEM-format. You can generate your RSA public/private key-pair using openssl like this:

```
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:1024 -out private.pem

```

Use openssl to convert it to pk8 format which PHP uses.

```
openssl pkcs8 -topk8 -inform pem -in private.pem -outform pem -nocrypt -out private.key

```

The file `private.key` should look something like this:

```
-----BEGIN PRIVATE KEY-----
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAML6duyE7hL2XPEH
qiYtyghoj6pO21zGPwSaBKTCg6i3AeJ4Ob6pCnvYQA+rRfw/+aBfT+Rv3LTSmX2i
9bAsLQB0Q3y8zku2NmqE/yoqhb9GAhL3toMasBuJ3ifvUOXTajtGEKy++YkAkRBK
7Wi/bK/IQNZd9nsOtKxz5DXNELbHAgMBAAECgYAj6k8Nsk7IX2kvXOIStkyIz/nm
vS/bHwlsp5JDZzEpWsyWEt9QJ4Mu3N6wBDSYCpDI4cWtpo1ZIZH0epgXI4wGPv2j
a6ilWZywUdhFZw1AUc3qLRoapqIPliimLhxPWmV2OfvbA4LiNvWGsF/qTaqVQ/0V
ebj+JYjJdFQcTjqlwQJBAOpKQ/EyuzDlO7YVPmw0rAfVRfVqTIvzpZ3hGThztcnQ
igI3ftbGSOPUcter3/cX5ENrIGMP6hLsWqSKWECBwK0CQQDVC6mVkrit/VXby2Zp
8epgprGhrUHojNO7ojQQN1Mupr4AHUWr2Y3xJH1uXaOjafBc6uLK7Cri3eLru+iy
Ph/DAkBLG/fgEVV1fWfBHdpfMhucf0DoRmW30CpeDNXbBS1YP6SexU/CZtrjPy55
+b3ZJy2kd2lwmJ9/5YnBiiB0vaQZAkEAuTgPcrOBjfqu94zpd/hTTT3/NtGbeGNe
/UTywJpo3iknDJBmbxaQOfMAfcA5MSw8RXwMOmGCk4RW8Z2Hm9c44wJBAJvIcnMV
6b2G6pizPPjoPhV+eNruWTyFt5ralEmxDpqV3p4TP89KVvaBlkzlT28p1P9vp5bD
J6BLhdOAUfC3CMY=
-----END PRIVATE KEY-----

```

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

```
openssl rsa -in private.key -pubout -out public.key

```

You can then send us the `public.key` file. The file should look something like this:

```
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDC+nbshO4S9lzxB6omLcoIaI+q
Tttcxj8EmgSkwoOotwHieDm+qQp72EAPq0X8P/mgX0/kb9y00pl9ovWwLC0AdEN8
vM5LtjZqhP8qKoW/RgIS97aDGrAbid4n71Dl02o7RhCsvvmJAJEQSu1ov2yvyEDW
XfZ7DrSsc+Q1zRC2xwIDAQAB
-----END PUBLIC KEY-----

```

For more details on using the SDK we strongly suggest you check out our [PHP User Guide](USERGUIDE.md).

### Composer

[](#composer)

```
composer require target365/sdk

```

[![Latest Stable Version](https://camo.githubusercontent.com/534b8f06aae9956490023004535ed4dbacd393f08c4877b642af8c63949af753/68747470733a2f2f706f7365722e707567782e6f72672f7461726765743336352f73646b2f762f737461626c65)](https://packagist.org/packages/target365/sdk)

### Test Environment

[](#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:

[](#url-httpstesttarget365io)

### Production Environment

[](#production-environment)

Our production environment is a mix of per-tenant isolated environments and a shared common environment. Contact  if you're interested in an isolated per-tenant environment.

#### Url:

[](#url-httpssharedtarget365io)

### Authors and maintainers

[](#authors-and-maintainers)

Target365 ()

### Issues / Bugs / Questions

[](#issues--bugs--questions)

Please feel free to raise an issue against this repository if you have any questions or problems.

### Private Key

[](#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

[](#contributing)

New contributors to this project are welcome. If you are interested in contributing please send an email to .

### Automated Test

[](#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.
- Run PHPUnit. `./vendor/bin/phpunit`

### License

[](#license)

This library is released under the MIT license.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12bb1d3b51340daa0f19c946f2ba7d3e4b277854fc722409809d0e43845fe0de?d=identicon)[garygitton](/maintainers/garygitton)

---

Top Contributors

[![HansOlavS](https://avatars.githubusercontent.com/u/12972203?v=4)](https://github.com/HansOlavS "HansOlavS (75 commits)")[![expertcoder](https://avatars.githubusercontent.com/u/18326086?v=4)](https://github.com/expertcoder "expertcoder (17 commits)")[![ChrisTarget365](https://avatars.githubusercontent.com/u/60473815?v=4)](https://github.com/ChrisTarget365 "ChrisTarget365 (10 commits)")[![bstensrud72](https://avatars.githubusercontent.com/u/41952025?v=4)](https://github.com/bstensrud72 "bstensrud72 (9 commits)")[![Mats](https://avatars.githubusercontent.com/u/58366?v=4)](https://github.com/Mats "Mats (4 commits)")[![garygitton](https://avatars.githubusercontent.com/u/3704874?v=4)](https://github.com/garygitton "garygitton (2 commits)")[![marcoleary](https://avatars.githubusercontent.com/u/3300320?v=4)](https://github.com/marcoleary "marcoleary (1 commits)")

### Embed Badge

![Health badge](/badges/target365php70-sdk/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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