PHP Package: symfony/contracts

Symfony Contracts is a PHP component that provides a set of PHP interfaces. These interfaces allow you to create libraries that are compatible with Symfony components and other PHP libraries.

Current Version: 3.5.2
Last Updated: Date not available
PHP Requirement: >=7.1
Dependencies: psr/log, symfony/polyfill-php80
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Symfony Contracts is a collection of PHP interfaces that define common interfaces for packages. These interfaces can be shared among different PHP libraries to ensure interoperability and consistency. By using Symfony Contracts, developers can create more robust and maintainable PHP code.

🔗 View on GitHub

Download Latest Version: 3.5.2

Download Download v3.5.2

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/symfony/contracts/3.5.2/autoload.php';

use Symfony\Contracts\Service\ServiceSubscriberInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Psr\Log\LoggerInterface;


$obj = new Symfony\Contracts\Service\ServiceSubscriberInterface();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.