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

ActiveLibrary[API Development](/categories/api)

lyseontech/ojs-sdk
==================

SDK package for OJS

v0.1.4(4y ago)2115[1 PRs](https://github.com/LibreCodeCoop/ojs-sdk/pulls)1GPL-3.0-onlyPHP

Since Nov 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/LibreCodeCoop/ojs-sdk)[ Packagist](https://packagist.org/packages/lyseontech/ojs-sdk)[ RSS](/packages/lyseontech-ojs-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (2)Versions (9)Used By (1)

[![Test Status](https://github.com/librecodecoop/ojs-sdk/workflows/ci/badge.svg?branch=main)](https://github.com/librecodecoop/ojs-sdk/workflows/ci/badge.svg?branch=main)

OJS-SDK
=======

[](#ojs-sdk)

SDK package for the [OJS](https://pkp.sfu.ca/ojs/)

Install
-------

[](#install)

```
composer require librecodecoop/ojs-sdk
```

Configure
---------

[](#configure)

OJS installed in the same server is necessary. Inform the path of OJS for all dependencies and the login URL if you need make login and get a user token after login.

EnvironmentSuggested valueUsageOJS\_VERSION3\_2\_1-1Setup development environment with DockerDB\_PASSWDrootSetup development environment with DockerOJS\_WEB\_BASEDIR/app/ojsFor make allOJS\_LOGIN\_URLOnly for loginHow to use?
-----------

[](#how-to-use)

- Create or update user:

```
use OjsSdk\Services\OJSService\Users\OJSUserService;

$OjsClient = new OJSUserService();
$return = $OjsClient->createUpdateUser([
    'username'       => 'jhonusername',
    'password'       => '123password',
    'email'          => 'jhon.doe@test.coop',
    'mailingAddress' => 'Street 55',
    'locales'        => ['en_US'],
    'groups'         => [1], // administrator
    'givenName'      => ['en_US' => 'Jhon'],
    'familyName'     => ['en_US' => 'Doe'],
    'phone'          => '+123456789',
    'lattes'         => 'https://lattes.com'
]);
```

- changePassword

```
use OjsSdk\Services\OJSService\Users\OJSUserService;

$OjsClient = new OJSUserService();
$OjsClient->changePassword('jhonusername', '123password');
```

- getUniqueUsername

```
use OjsSdk\Services\OJSService\Users\OJSUserService;

$OjsClient = new OJSUserService();
$uniqueUsername = $OjsClient->getUniqueUsername('jhonusername', '123password');
```

- Login

```
use OjsSdk\Services\OJSService\Users\OJSUserService;

$OjsClient = new OJSUserService();
$loginResponse = $OjsClient->login('jhonusername', '123password');
```

### Make anyfing

[](#make-anyfing)

The method `OjsProvider::getApplication();` make all necessary to use all classes of OJS.

For more informations see [OJSUserServiceTest.php](tests/Services/OJSService/Users/OJSUserServiceTest.php) or [OJSUserService.php](src/Services/OJSService/Users/OJSUserService.php).

Development
-----------

[](#development)

Use Docker for create a development environment.

If you don't use Docker, read the [entrypoint.sh](.docker/php7/entrypoint.sh) and [Dockerfile](.docker/php7/Dockerfile).

Running tests:

```
composer test
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.7% 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 ~202 days

Total

5

Last Release

1567d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63850983d19281fbefc41791cc4675f9c6cca0c858f9cc485ea47af88468d4ac?d=identicon)[librecodecoop](/maintainers/librecodecoop)

---

Top Contributors

[![vitormattos](https://avatars.githubusercontent.com/u/1079143?v=4)](https://github.com/vitormattos "vitormattos (48 commits)")[![liviacarolgouvea](https://avatars.githubusercontent.com/u/1173458?v=4)](https://github.com/liviacarolgouvea "liviacarolgouvea (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

ojsphpphp7sdksdk-phpsdkojs

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

233.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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