PHP Package: awobaz/compoships
Compoships is a PHP library that enables composite primary key relationships in Eloquent models for Laravel applications.
Package Description
Compoships is a powerful PHP library designed to simplify the management of composite primary key relationships in Eloquent models within Laravel projects. By seamlessly integrating with Laravel's Eloquent ORM, developers can easily define and work with composite keys, enhancing database interaction efficiency and flexibility.
Download Latest Version: 1.0.4

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/awobaz/compoships/1.0.4/loader.php';
require_once 'libs/illuminate/database/12.33.0/loader.php';
use Awobaz\Compoships\Tests\Models\User;
use Awobaz\Compoships\Tests\Models\Role;
use Illuminate\Database\Eloquent\Model;
$obj = new User();
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.