Command Line Wrapper for PonsAPI. This is a rewrite of a *Ponsapi-cli* that was written in Bash into PHP using Simfony Console Component. Refer to *Ponsapi-cli* for additional info.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lio Novelli e6fb1f7c87 Commit uncommited work. 2 years ago
config Fix Request and Config test. 2 years ago
src Commit uncommited work. 2 years ago
tests Commit uncommited work. 2 years ago
.gitignore Add first test. 2 years ago
LICENSE Add license and parse test template file. 2 years ago
README.org Dependency injection complete! 2 years ago
composer.json Add properties to composer.json 2 years ago
composer.lock Add properties to composer.json 2 years ago
dependencies.php Fix Request and Config test. 2 years ago
ponsapi.php Fix Request and Config test. 2 years ago
zapiski.org Add properties to composer.json 2 years ago

README.org

Ponsapi-php

Command Line Wrapper for Pons API. This is a rewrite of a Ponsapi-cli that was written in Bash into PHP using Simfony Console Component. Refer to Ponsapi-cli for additional info.

Usage

$ ./ponsapi.php translate [-flag] <word>

Get help by adding --help or shorthand -h flag.

-f option (fuzzy matching) helps if no results were found.

Specification

  1. Pretty prints pons api response to command line.
  2. Define default options in config file.
  3. Everything is supported with tests.
  4. Add caching with sqlite.
  5. Create a php archive out of the project.

Installation

... coming soon ... (wget .phar file from release)

To Do

  • Test Coverage
  • Write Classes
  • Add scripts and config keys to composer that would run autoconfigure on installation.
  • Create a .phar file