Download the PHP package hugofara/lwt without Composer

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

Learning with Texts

LWT logo - an open book

Learn languages by reading — with smart suggestions and built-in definitions

Latest Stable Version PHP Version PHP CI Frontend CI Psalm PHPCS Docker License


Learning with Texts (LWT) is a self-hosted web app for language learning through reading. Import any text you want to study — a novel, a news article, song lyrics — or let LWT suggest reading material adapted to your level from open libraries. Either way, words are enriched with translations and definitions from open sources, and you build vocabulary through reading and spaced repetition.

Don't know where to start? LWT suggests books from Project Gutenberg ranked by difficulty, plus curated news feeds in 19 languages. Already have a text you love? Paste it in and start reading. As you mark words, suggestions get smarter and new vocabulary is pre-enriched from Wiktionary.

[!IMPORTANT] This is a community-maintained fork and a significant upgrade over the original LWT, created by hapepo23 and first released in 2011. It brings an easy-to-use interface, text suggestions and reading statistics, modern PHP support (8.2–8.5), mobile support, and compatibility with the modern web. The original LWT is still available on SourceForge; a snapshot of its code is also preserved on the official branch of this repository.

[!TIP] There's a mobile app now: Lukaisu. A new local-first Android client (heading to F-Droid) for learning by reading. It works fully offline with an on-device database; connecting a server is optional and adds Chinese/Japanese word-splitting, text-to-speech, transcription, and online text discovery. LWT 3.1+ servers are compatible, so you can read your existing library on your phone.

Table of Contents

Quick Start

The fastest way to get started is with Docker:

Then open http://localhost:8010/ in your browser.

How It Works

1. Pick a text — Import something you want to read, or browse suggestions matched to your level from Project Gutenberg and curated news feeds.

2. Read and learn — Unknown words are highlighted. Click any word to see its translation (pre-loaded from Wiktionary) and save it to your vocabulary.

Reading text

3. Review with context — Practice vocabulary with spaced repetition, always seeing words in their original context.

Reviewing word

4. Keep going — As you mark words known or unknown, difficulty estimates adapt. Suggestions get smarter, and your next text is always ready.

Unlike flashcard apps like Anki, LWT keeps words connected to the texts where you found them. We include an Anki exporter if you want both.

Features

Smart Content Suggestions

Built-in Enrichment

Reading & Review

More Features

Feature Description
Mobile support Responsive design for phones and tablets
Themes Customizable appearance
Keyboard shortcuts Navigate efficiently while reading
Video embedding Include videos from YouTube and other platforms
MeCab integration Japanese word-by-word translation
Position memory Resume reading where you left off
Anki export Export vocabulary to Anki for additional review

Technical Improvements

Installation

Docker (Recommended)

Works on any OS with Docker installed.

Option A: Quick installer

Option B: Build from source

Access at http://localhost:8010/

Configuration is done via .env file (see .env.example for all options).

Linux

Manual Installation (Windows/macOS/Linux)

  1. Install prerequisites: PHP 8.2+, MySQL/MariaDB, a web server (Apache/Nginx)
  2. Clone or download the repository
  3. Configure the database:

  4. Install dependencies:

See the Installation Guide for detailed instructions.

Requirements

Component Version
PHP 8.2, 8.3, 8.4, or 8.5
MySQL/MariaDB 5.7+ / 10.3+
PHP Extensions mysqli, mbstring, dom, zip (for EPUB support)

For development, you'll also need Composer and Node.js 18+.

Documentation

Contributing

Contributions are welcome! Here's how to set up a development environment:

Development Commands

Translations

LWT is available in nine languages. Translations live in locale/<code>/ and fall back to English key by key, so a partial contribution is welcome — see Translations for current completion and how to help.

Branch Strategy

Branch Purpose
main Stable releases
develop Development and testing
official Tracks official LWT releases
badges Generated locale-completion badges (do not edit by hand)

Alternatives

If LWT doesn't fit your needs, consider these projects:

License

This project is released into the public domain under the Unlicense. You're free to use, modify, and distribute it however you like.


Happy reading, happy learning!


All versions of lwt with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 | ^8.3 | ^8.4 | ^8.5
ext-mbstring Version *
ext-mysqli Version *
ext-dom Version *
ext-zip Version *
phpmailer/phpmailer Version ^7.0
league/oauth2-google Version ^5.0
thenetworg/oauth2-azure Version ^2.2
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 hugofara/lwt contains the following files

Loading the files please wait ...