PHP Package: willdurand/negotiation

PHP library for content negotiation based on HTTP headers. Enables easy handling of content types and languages in web applications.

Current Version: 3.1.0
Last Updated: 2022-01-30
PHP Requirement: >=7.1
Dependencies: psr/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Negotiation is a powerful PHP library that simplifies content negotiation based on HTTP headers. It provides developers with an efficient way to manage content types and languages in web applications, enhancing user experience and SEO optimization.

🔗 View on GitHub

Download Latest Version: 3.1.0

Download Download v3.1.0

Code Integration Example

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

<?php

// Example from PHPlibraries.com
require_once 'libs/willdurand/negotiation/3.1.0/autoload.php';

use Negotiation\Accept;
use Negotiation\AcceptCharset;
use Negotiation\AcceptEncoding;
use Negotiation\AcceptLanguage;
use Negotiation\BaseAccept;
use Negotiation\Exception\InvalidArgument;
use Psr\Log\LoggerInterface;


$obj = new Negotiation\Accept();
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.