Download the PHP package phpinnacle/langcat without Composer

On this page you can find all versions of the php package phpinnacle/langcat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package langcat

Langcat

Langcat is a framework-agnostic PHP 8.4 client for LangLion API v4. It depends only on PSR HTTP interfaces, so the application chooses the HTTP client and PSR-17 implementation.

Installation

Usage

Requests use fluent builders and validate caller input. Successful API payloads are returned as typed readonly response objects. Non-successful HTTP responses throw ApiException and retain the status, raw body, and typed LangLion error when available.

Request and response namespaces mirror API domains, for example Request\Students, Response\Groups, and Response\Finances. Cross-domain DTOs live under Request\Shared and Response\Shared.

Runnable examples

The examples directory contains standalone CLI scripts using Guzzle. In your local package checkout, install the example HTTP client if it is not already available:

Run the examples from the langcat package root with PHP 8.4 or later. Configure credentials with access to the selected LangLion resources:

The shared bootstrap loads the package's Composer autoloader, or the monorepo autoloader when working in this repository. It authenticates through /token once per run and passes the access token to withAccessToken(). Tokens remain in memory and are not printed or saved. Environment variables are read directly; .env files are not loaded.

Example Purpose LangLion changes
list-students.php Export non-archived regular students from one school across all pages. None beyond authentication.
student-profile.php Combine a student's identity with available contact details. None beyond authentication.
group-lessons.php Export a group's lessons starting within a date range across all pages. None beyond authentication.
create-lead.php Create a lead in a school without parent accounts. Creates a new student record on each run.
assign-student.php Assign an existing student to a group with an explicit enrollment date. Writes the group assignment.

Replace the sample IDs with positive numeric IDs from your instance:

List examples print one JSON object per line and hold only one page in memory. Langcat returns individual pages; the scripts request subsequent pages using meta.total and the configured page size. Results use ascending ID order. The lesson range includes its start boundary and excludes its end boundary; date-only values use the API's date interpretation. For an explicit timezone, supply timestamps such as 2026-09-01T00:00:00+02:00.

Write examples print result identifiers as JSON. Use a test school and group when trying them:

The creation response provides a student ID that can be used with student-profile.php. Leads are excluded by the regular-student filter in list-students.php. For assignment, choose an existing student eligible for the target group; the example does not change their student type. The enrollment date must use YYYY-MM-DD. Assignment success may have an empty response body, so the script prints the submitted identifiers only after the request succeeds.

API and transport errors propagate as exceptions and terminate the scripts with a nonzero exit status. Read examples can produce partial output before a later page fails.

Supported operations

All 125 operations from the LangLion API v4 specification are implemented:

The package does not register Laravel service providers or resolve dependencies from a container.


All versions of langcat with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpinnacle/langcat contains the following files

Loading the files please wait ...