PHPackages                             mymagic/connect - 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. mymagic/connect

ActiveLibrary[API Development](/categories/api)

mymagic/connect
===============

MaGIC Connect API wrapper

3.2.9(6y ago)1823PHPCI failing

Since Jul 31Pushed 6y ago7 watchersCompare

[ Source](https://github.com/mymagic/connect-wrapper)[ Packagist](https://packagist.org/packages/mymagic/connect)[ RSS](/packages/mymagic-connect/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (21)Used By (0)

Getting Started
===============

[](#getting-started)

```
composer install

```

1.0 Usage
=========

[](#10-usage)

```
// Init MaGIC Connect
$this->magicConnect = new MyMagic\Connect\Client;

// optional, default to http://account.mymagic.my. use it in dev environment
$this->magicConnect->setConnectUrl('http:accountd.mymagic.my');

// Returns  {JSON} once the user authorize their account. Refer 1.1
$this->magicConnect->connect("CODE","CLIENTID","CLIENTSECRET","CALLBACKURI");

// Logout user from connect and return to logout user on client side. Refer 1.2
$this->magicConnect->getLogoutUrl($redirectUrl = '');

// User connect profile URL
$this->magicConnect->getProfileUrl();

// Check whether user exist or not on connect. Refer 1.3
$this->magicConnect->isUserExists($email)

// Create user on connect. Refer 1.4
$this->magicConnect->createUser($email, $firstName = '', $lastName = '', $password, $gender = '', $t_and_c = '1', $confirmation = '1', $country = '');

```

1.1 JSON Usage
==============

[](#11-json-usage)

```
//Execute
    $data = $this->magicConnect->connect('$_GET['code']','1','longclientsecret','http://clienturi.tld/callback');

//Get the client ID and secret at http://account.mymagic.my/api

//Output of $data

    {
    firstname: first_name // Foo
    lastname: last_name // Bar
    email: user_email // name@domain.tld
    gender: user_gender // M or F (Male/Female)
    country: user_country // Ex. MY (Malaysia)
    avatar: user_avatar // http://domain.tld/image.format
    }

```

1.2 Logout URL
==============

[](#12-logout-url)

```

//Execute
    $this->magicConnect->getLogoutUrl("http://clientsideurl.tld/logout");

//Will logout both connect and client

```

1.3 Is User Exist
=================

[](#13-is-user-exist)

```
//Execute
    $this->magicConnect->isUserExists("EMAIL")

//If exist will return true else false.

```

1.4 Create user on connect
==========================

[](#14-create-user-on-connect)

```
//Variables
    $email = 'email@domain.tld'
    $firstname = 'Foo'
    $lastname = 'Bar'
    $password = 'worldsmostsecurepassword'

//Execute
    this->magicConnect->createUser($email,$firstname,$lastname,$password);

//If create success wil return true else false

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~95 days

Recently: every ~147 days

Total

19

Last Release

2269d ago

Major Versions

v1.0 → v2.02015-08-12

2.3.2 → 3.02017-02-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5299858?v=4)[gtaclub](/maintainers/gtaclub)[@gtaclub](https://github.com/gtaclub)

---

Top Contributors

[![exiang](https://avatars.githubusercontent.com/u/5336690?v=4)](https://github.com/exiang "exiang (13 commits)")[![gtaclub](https://avatars.githubusercontent.com/u/5299858?v=4)](https://github.com/gtaclub "gtaclub (7 commits)")[![imranismail](https://avatars.githubusercontent.com/u/6883647?v=4)](https://github.com/imranismail "imranismail (4 commits)")[![rosaan](https://avatars.githubusercontent.com/u/55988522?v=4)](https://github.com/rosaan "rosaan (2 commits)")

### Embed Badge

![Health badge](/badges/mymagic-connect/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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