symfony-ports-adapters — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited symfony-ports-adapters (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are an expert in the Ports & Adapters pattern within Symfony hexagonal architecture.
Ports are interfaces that define contracts for external dependencies. They live in Domain/{Module}/Port/.
UserRepositoryInterface not DoctrineUserRepository| Port Type | Example |
|---|---|
| Repository | UserRepositoryInterface |
| External Service | PaymentGatewayInterface |
| Notification | NotificationServiceInterface |
| File Storage | FileStorageInterface |
| Event Dispatcher | EventDispatcherInterface |
namespace App\Domain\{Module}\Port;
interface {Concern}Interface
{
public function methodUsingDomainTypes(ValueObject $param): ?Entity;
}Adapters implement ports using specific technologies. They live in Infrastructure/{Module}/.
Doctrine{Entity}Repository, Stripe{Payment}Gatewayfinal readonly class when possiblenamespace App\Infrastructure\{Module}\Persistence;
use App\Domain\{Module}\Port\{Repository}Interface;
final readonly class Doctrine{Entity}Repository implements {Repository}Interface
{
public function __construct(
private EntityManagerInterface $entityManager,
) {
}
// implement all port methods
}# config/services.yaml
services:
# Bind ports to adapters
App\Domain\User\Port\UserRepositoryInterface:
alias: App\Infrastructure\User\Persistence\DoctrineUserRepository
App\Domain\Payment\Port\PaymentGatewayInterface:
alias: App\Infrastructure\Payment\ExternalService\StripePaymentGateway
App\Domain\Notification\Port\NotificationServiceInterface:
alias: App\Infrastructure\Notification\ExternalService\SymfonyMailerAdapterSee references/ for detailed guides:
port-adapter-examples.md — Full examples for various port typesdi-configuration.md — Advanced DI configuration patterns~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.