PHPackages                             mysmile/apiclient - 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. mysmile/apiclient

AbandonedLibrary

mysmile/apiclient
=================

Rest api client for MySmile CMS

v1.3.0(11y ago)018BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jan 1Pushed 11y ago2 watchersCompare

[ Source](https://github.com/MySmile/api-client-php)[ Packagist](https://packagist.org/packages/mysmile/apiclient)[ RSS](/packages/mysmile-apiclient/feed)WikiDiscussions master Synced 1mo ago

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

MySmile API REST Client
=======================

[](#mysmile-api-rest-client)

[![Latest Stable Version](https://camo.githubusercontent.com/6c67a19b9c75d3dbf704358cea5bf45de1261a381cb60d0a6e1019cb96cee8d0/68747470733a2f2f706f7365722e707567782e6f72672f6d79736d696c652f617069636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/mysmile/apiclient)[![License](https://camo.githubusercontent.com/e0d00a8e901dcf37c1c2410003e08236e0c0ea6c0a79fe3dbae0abada2517c2c/68747470733a2f2f706f7365722e707567782e6f72672f6d79736d696c652f617069636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/mysmile/apiclient)[![Build Status](https://camo.githubusercontent.com/4f08b2b8b9f57a26c28491c222884272c3afecdf58641c4b8e001f930deaf9e6/68747470733a2f2f7472617669732d63692e6f72672f4d79536d696c652f6170692d636c69656e742d7068702e737667)](https://travis-ci.org/MySmile/api-client-php)[![Coverage Status](https://camo.githubusercontent.com/1b666fe023b9d1203fa681fea09523649e62c6e0d4e55cadd328871c31a278f2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4d79536d696c652f6170692d636c69656e742d7068702f62616467652e706e67)](https://coveralls.io/r/MySmile/api-client-php)[![SensioLabsInsight](https://camo.githubusercontent.com/75e622ee8133bbd1ba8573eb8a7530cabfbcd5c04e8639bd94986f9932d2f419/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32663161376238342d336132352d346430662d393137632d3331626338343761386265312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/2f1a7b84-3a25-4d0f-917c-31bc847a8be1)

Rest api client Client for MySmile CMS.

Requirements
------------

[](#requirements)

- PHP 5.3+
- Curl

Installation
------------

[](#installation)

The best way to install MySmile Api Client is use composer:

1. Update your `composer.json`

```
{
    "require": {
        "mysmile/apiclient": "dev-master"
    }
}
```

2. Run `composer update`

Usage
-----

[](#usage)

### Manager configuration

[](#manager-configuration)

```
    $endpoint   = 'http://demo.mysmile.com.ua/api'; // please set your endpoint instead of demo
    $manager    = Manager::getInstance()
        ->setEndpoint($endpoint);
```

For developing purpose it's possible to configure proxy:

```
    $proxy   = 'http://127.0.0.1:8888';
    $manager = Manager::getInstance()
        ->setProxy();

```

### Get language list

[](#get-language-list)

```
    $language = new Language($manager);
    $response = $language->getData();
```

### Get contact

[](#get-contact)

```
    $contact    = new Contact($manager);
    $response   = $contact->getData();
```

### Get content list

[](#get-content-list)

---

```
   $params     = array('lang' => 'en');// list of available languages can be get using Language Resource
   $content    = new Content($manager);
   $response   = $content->getData($params);
```

### Get content by slug

[](#get-content-by-slug)

```
   $params     = array('lang' => 'en', 'slug' => 'index'); // how to get list of available slugs is presented in the example above
   $content    = new Content($manager);
   $response   = $content->getData($params);
```

Example
-------

[](#example)

Mobile version of MySmile that is based on MySmile Api Client can be found here `/doc/example`.

### Installation

[](#installation-1)

Run `composer update` in `/doc/example`.

License
-------

[](#license)

BSD-3-Clause

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87835b8aad10c1a1fcdfb499cebd35ca4959255c148f452cde9ec3055d2ecb2c?d=identicon)[Sergii Pryz](/maintainers/Sergii%20Pryz)

---

Top Contributors

[![picamator](https://avatars.githubusercontent.com/u/4932996?v=4)](https://github.com/picamator "picamator (25 commits)")

---

Tags

rest api client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mysmile-apiclient/health.svg)

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

PHPackages © 2026

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