Download the PHP package ernestdefoe/phrasebook without Composer

On this page you can find all versions of the php package ernestdefoe/phrasebook. 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 phrasebook

Phrasebook

Translate your Flarum forum's interface with AI, using your own provider and your own key.

Phrasebook finds every string a language is missing (core and every extension you run), translates them with the model you pick, checks every placeholder, and lets you review each one. Then it saves them as Linguist overrides that take effect at once, or exports a complete language pack ready to publish.

Bring your own provider

Language models Translation engines On your own hardware
Anthropic (Claude) DeepL (Free and Pro keys) Ollama
OpenAI Google Cloud Translation LM Studio
Google Gemini Any OpenAI-compatible server
Mistral, DeepSeek, Groq
OpenRouter (hundreds of models)

Find what is missing

Pick one language or several, installed or brand new (pt_BR, zh_Hans...). For each, Phrasebook lists every extension with:

Untick any extension you don't want translated.

Translate safely

Know the cost before you start

Runs that look after themselves

Review, then save or export

Security

Performance

A real run on a forum with 150 extensions: 223 Spanish strings translated by Claude Haiku 5.5 in 9 requests and about 30 seconds on the queue, every one valid on the first try, for half a cent.

Admin only, from end to end: nothing on any forum page (no JavaScript, CSS or payload), no listeners, nothing that runs during a page view. The admin page adds 2 KB (gzipped) to the admin bundle; the screens themselves load only when you open Phrasebook. A scan of 16,000 strings across 150 extensions takes under 0.1 s.

Installation

Enable Phrasebook in the admin panel. Install fof/linguist 2.0.0 or newer to save translations straight to the forum (older versions show placeholders wrongly in emails); without it, export them.

Optional PHP extensions: zip (language-pack export; YAML export works without it) and intl (language names).

Updating

Links


All versions of phrasebook with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-curl Version *
flarum/core 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 ernestdefoe/phrasebook contains the following files

Loading the files please wait ...