Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Saibamen/Generate-Sort-Numbers

Repository files navigation

Travis Build Status CircleCI Build Status Scrutinizer Code Quality Code Climate StyleCI SensioLabsInsight

Generate and sort numbers in PHP

PHP console app for FINGO.

Documentation for programmers: here

Requirements

  • PHP >= 5.3.3
  • Composer if you want to generate documentation

Usage

Generating numbers

Run generate script and follow instructions:

php generate

Options:

  • --min: minimum allowed number
  • --max: maximum allowed number
  • --decimal: number of decimal places
  • --size: maximum file size eg. 5B, 5KB, 5MB, 5GB
  • --output: output filename (without extension)
  • --ext: file extension. Default: '.dat'
  • --delimiter: delimiter for numbers. Default: ' '
  • --debug: prints dev informations
  • --testing: doesn't print progress when generating

Sorting numbers

Run sort script and follow instructions:

php sort

Options:

  • --input: input filename (without extension)
  • --output: output filename (without extension)
  • --ext: file extension for input and output. Default: '.dat'
  • --delimiter: delimiter for numbers. Default: ' '
  • --debug: prints dev informations

Generating documentation

Update Composer and install latest phpDocumentor from composer.json:

composer self-update
composer update

Generate documentation:

Under Linux / MacOSX:

vendor/bin/phpdoc -d ./ -f generate -f sort -t ./docs --ignore "vendor/"

Under Windows:

vendor\bin\phpdoc.bat -d ./ -f generate -f sort -t ./docs --ignore "vendor/"