jizuscreed/lingualeoclient

A library for access to LinguaLeo.com content by API from Android-app

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jizuscreed/lingualeoclient

1.0.2 2020-03-15 20:02 UTC

This package is auto-updated.

Last update: 2025-10-16 08:29:00 UTC


README

A library for access to LinguaLeo.com content by API from Android-app. It can:

  • auth by user
  • getting user's dictionary
  • getting collections of materials
  • getting materials from collection
  • getting translation for any word or phrase from lingualeo base

Installation

composer require jizuscreed/lingualeoclient

Quickstart

Authorization:

$linguaLeoClient = new LinguaLeoClient\Client($userEmail, $userPassword);

Getting user profile data:

$linguaLeoClient->user;

Getting user's dictionary:

$dictionary = $linguaLeoClient->getDictionary($startLimit, $chunkLimit, $onlyWords);

Getting materials collections:

$collections = $linguaLeoClient->getCollections();

Getting materials from collection (grabs list of materials with its datas and preview):

$materials = $linguaLeoClient->getMaterialsFromCollection(Collection $collection, $chunkOffset, $chunkLimit);

Getting material full text:

$materials[0]->getFullText();

Getting word's translations:

$linguaLeoClient->getWordTranslations('attraction');