2017 © Pedro PelĆ”ez
 

library certificationy-cli

A CLI tool to train certifications

image

certificationy/certificationy-cli

A CLI tool to train certifications

  • Wednesday, August 2, 2017
  • by eko
  • Repository
  • 30 Watchers
  • 320 Stars
  • 3,095 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 59 Forks
  • 3 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

, (*1)

Certificationy CLI

This is the CLI tool to train on certifications., (*2)

How it looks?

Certificationy application, (*3)

Installation and update

Using Composer

$ composer create-project certificationy/certificationy-cli
$ php certificationy.php

With Docker and Docker compose

Install the project prerequisites

The project has prerequisites:, (*4)

To install Docker, refer to the official documentation for your operating system: https://docs.docker.com/install/., (*5)

Once Docker installed, to check its smooth running, run docker -v, you should get something like suit:, (*6)

$ docker -v
Docker version 1.12.4, build 1564f02

You must use the minimum version 1.12 of Docker., (*7)

To install the docker-composer, please also refer to the official documentation: https://docs.docker.com/compose/install/., (*8)

Once docker-composes installed (install it globally to be able and access from anywhere), to check its proper functioning, run docker-compose -v, you should get something like suit:, (*9)

$ docker-compose -v
Docker-composer version 1.10.0, build 4bd6f1a

You must use the docker-compose version 1.10 minimum., (*10)

A makefile allows you to manipulate the container simply and easily. You have to be able to run make -v, which you are ready to choose:, (*11)

$ make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
GPLv3 + license: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are allowed to modify and redistribute.
There is NO WARRANTY, to the extent of the will of the law.

Note: If you are using Windows, we strongly recommend that you use the Linux console included in Windows 10 (https://docs.microsoft.com/en-us/windows/wsl/install-win10) or to use an emulator for Command to be able to use make which will greatly facilitate the work., (*12)

Using the Container

You should then be able to run make which will show you using the Makefile:, (*13)

$ make
start:           Start the project
bash:            Go to the bash container of the application
stop:            Stop docker containers

Start the application with make start:, (*14)

$make start
docker-compose build
Building app
Step 1/19 : FROM php:7.1-fpm-alpine
7.1-fpm-alpine: Pulling from library/php
... # pulling image
Successfully built 22ab66e58936
Successfully tagged certificationycli_app:latest
docker-compose up -d
Recreating certificationycli_app_1
docker exec -i -t 6929cb80f7a7df579910341c74208e05d6d5548900488c35b41c281da9fe940e /bin/bash
bash-4.3# 

Once the procedure is complete you can already use the bash of the container., (*15)

Run Certificationy CLI;, (*16)

$ php certificationy.php

To exit bash docker, (*17)

$ exit 

Stop the application with make stop:, (*18)

$ make stop 
docker-compose kill
Killing certificationycli_app_1 ... done

Runing it through docker composer

Start the container

Start it in daemon mode., (*19)

docker compose up -d

Run certificationy

Execute this instruction or whatever certificationy you want., (*20)

docker exec -it certificationy-cli_app_1 /bin/bash -c "php certificationy.php start --training"

Stop the container

docker compose down

More run options

Select the number of questions

$ php certificationy.php start --number=10

The default value is 20., (*21)

List categories

$ php certificationy.php start --list [-l]

Will list all the categories available., (*22)

Only questions from certain categories

$ php certificationy.php start "Automated tests" "Bundles"

Will only get the questions from the categories "Automated tests" and "Bundles"., (*23)

Use the category list from List categories., (*24)

Hide the information that questions are/aren't multiple choice

$ php certificationy.php start --hide-multiple-choice

As default, the information will be displayed., (*25)

Multiple choice, (*26)

Training mode: the solution is displayed after each question

$ php certificationy.php start --training

Set custom configuration file

$ bin/certificationy start --config=../config.yml

Will set custom config file., (*27)

And all combined

$ php certificationy.php start --number=5 --hide-multiple-choice "Automated tests" "Bundles"
  • 5 questions
  • We will hide the information that questions are/aren't multiple choice
  • Only get questions from category "Automated tests" and "Bundles"

Note: if you pass --list [-l] then you will ONLY get the category list, regarding your other settings., (*28)

The Versions

02/08 2017

dev-master

9999999-dev http://github.com/certificationy/certificationy-cli

A CLI tool to train certifications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincent Composieux

test cli symfony exam certification

22/06 2017

v2.0-alpha

2.0.0.0-alpha http://github.com/certificationy/certificationy-cli

A CLI tool to train certifications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincent Composieux

test cli symfony exam certification

13/11 2015
09/02 2015

1.1.0

1.1.0.0 http://github.com/certificationy/certificationy-cli

A CLI tool to train on Symfony certification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincent Composieux

test cli symfony exam certification

28/07 2014

1.0.0

1.0.0.0 http://github.com/certificationy/certificationy-cli

A CLI tool to train on Symfony certification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vincent Composieux

test cli symfony exam certification