1. Go to this page and download the library: Download chrisabner/cordon-modulith library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chrisabner / cordon-modulith example snippets
namespace Modules\Catalog\Support;
use Cordon\Attributes\PublicApi;
#[PublicApi]
final class PriceFormatter
{
// ...
}
use Cordon\Testing\Cordon;
it('keeps Billing inside its boundaries', function () {
expect('Billing')->toRespectBoundaries();
});
it('keeps every module inside its boundaries', function () {
expect(Cordon::modules())->each->toRespectBoundaries();
});