PHP Package: fruitcake/php-cors

PHP library for Cross-Origin Resource Sharing (CORS) headers management, allowing secure sharing of resources. It enables seamless cross-origin requests and enhanced web security.

Current Version: 1.3.0
Last Updated: 2023-10-12
PHP Requirement: ^7.4|^8.0
Dependencies: None

Package Description

The PHP-CORS library provides a robust solution for managing Cross-Origin Resource Sharing (CORS) headers in PHP projects. This library simplifies the process of setting up CORS policies, allowing secure sharing of resources across different domains. By implementing proper CORS headers, developers can ensure seamless cross-origin requests while maintaining enhanced web security measures. With PHP-CORS, you can easily configure and enforce CORS policies to regulate access control and protect sensitive data.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.3.0

Download Download v1.3.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/fruitcake/php-cors/1.3.0/loader.php';
use Fruitcake\Cors\CorsProfile;

$obj = new CorsProfile();
echo '✅ Test OK: ' . get_class($obj);
?>

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

Community Discussion

Ask questions, share tips, or report issues below.