todstoychev / primes
一个简单的捆绑包,用于可视化素数及其乘法表
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: 2024-09-23 07:15:00 UTC
README
像安装常规的 Symfony 捆绑包一样安装。运行:composer require todstoychev/primes
。可能需要更改你的 symfony 安装中的 minimum-stability
指令为 dev
。这可以通过向你的 composer.json 文件中添加以下内容来完成。
{ "minimum-stability": "dev" }
然后,在 app/AppKernel.php
中的捆绑数组中添加
$bundles = [ // Other bundles here new Todstoychev\PrimesBundle\TodstoychevPrimesBundle(), ];
命令
该捆绑包提供了2个命令。
- primes:show [--count] - 这个命令提供了素数的列表。如果使用了 --count 选项,你必须提供你想要生成的素数数量。
- primes:table [--count] - 与前一个命令的用法相同,但显示生成的素数的乘法表。