todstoychev/primes

Simple bundle to visualise primes and their multiplication table

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2017-09-02 13:08 UTC

This package is not auto-updated.

Last update: 2024-11-04 07:58:31 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.