Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brainmaestro/tldr-php

PHP Client for tldr
https://github.com/brainmaestro/tldr-php

php7 tldr tldr-pages tldr-php

Last synced: 3 months ago
JSON representation

PHP Client for tldr

Awesome Lists containing this project

README

        

# tldr-php
[![Travis](https://img.shields.io/travis/BrainMaestro/tldr-php.svg?style=flat-square)](https://travis-ci.org/BrainMaestro/tldr-php)
[![Packagist](https://img.shields.io/packagist/v/brainmaestro/tldr.svg?style=flat-square)](https://packagist.org/packages/brainmaestro/tldr)
> A `PHP` based command-line client for [tldr](https://github.com/tldr-pages/tldr).

![tldr screenshot](screenshot.png)

## Installing
```sh
composer global require brainmaestro/tldr
```

## Usage
To see tldr pages:

- `tldr ` show examples for this command
- `tldr --p=` show command page for the given platform (`linux`, `osx`, `sunos`)

The client caches a copy of all pages locally, in `~/.tldr`.
There are more commands to control the local cache:

- `tldr --update` download latest version of pages in your local cache
- `tldr --clear-cache` delete the entire local cache

## Related
- [tldr-node-client](https://github.com/tldr-pages/tldr-node-client) - source of documentation and cache functionality
## License
MIT © Ezinwa Okpoechi