todstoychev / primes
Simple bundle to visualise primes and their multiplication table
dev-master
2017-09-02 13:08 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is not auto-updated.
Last update: 2026-03-09 14:09:47 UTC
README
Install as usually install Symfony bundles.
Run: composer require todstoychev/primes.
It may be necessary to change your symfony installation minimum-stability directive to dev.
This can be done by adding:
{
"minimum-stability": "dev"
}
to your composer.json file.
Then add to app/AppKernel.php in the bundles array:
$bundles = [ // Other bundles here new Todstoychev\PrimesBundle\TodstoychevPrimesBundle(), ];
Commands
The bundle provides 2 commands.
- primes:show [--count] - this one provides a list of primes. If --count option used you must provide how many primes do you want to generate.
- primes:table [--count] - has the same way of usage as the previous command, but displays multiplication table of primes generated.