todstoychev/primes

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Simple bundle to visualise primes and their multiplication table

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

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

This package is not auto-updated.

Last update: 2021-09-12 17:04:26 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.