stream.deblan.org/posts/2015-07-14-livecoding-console.md
2015-07-20 14:40:52 +02:00

89 lines
1.7 KiB
Markdown

---
title: VOD: LiveCoding Console
layout: post
tags:
- php
- symfony
- cli
- intermediate
---
LiveCoding Console
------------------
<iframe src="https://vid.me/e/CDkQ" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen scrolling="no" height="641" width="1140"></iframe>
<iframe src="https://vid.me/e/CDkQ" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen scrolling="no" height="641" width="1140"></iframe>
Source code: [https://gitlab.deblan.org/deblan/livecoding-console](https://gitlab.deblan.org/deblan/livecoding-console "Livecoding-console")
LiveConding Console provides a cli to list and play streams for livecoding.tv.
### Examples
```bash
$ ./bin/console streams --language php --difficulty intermediate
$ ./bin/console play deblantv
```
### Requirements
* PHP >= 5.4
* Composer (php)
### Installation
```bash
$ git clone https://gitlab.deblan.org/deblan/livecoding-console
$ cd livecoding-console
$ composer update
```
#### Composer
Composer can maybe be downloaded from your system's repositories.
Else, follow the next instructions:
##### Download
```bash
# With cURL
curl -sS https://getcomposer.org/installer | php
# With Wget
wget -O - -q https://getcomposer.org/installer | php
```
You can now use it with `php composer.phar [arguments]`.
##### Executable
```bash
mv composer.phar composer
chmod +x composer
```
Use it with `./composer [arguments]`.
##### Install
Assuming `~/bin` exists ans is in `$PATH`.
```bash
mv composer ~/bin
```
##### Dependencies Installation (from `composer.lock`)
```bash
composer install
```
##### Dependencies Update (will change `composer.lock`)
```bash
composer update
```