PHP Package: awobaz/compoships

Compoships is a PHP library that enables composite primary key relationships in Eloquent models for Laravel applications.

Current Version: 1.0.4
Last Updated: Date not available
PHP Requirement: >=7
Dependencies:
illuminate/database
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.0.4

Download Download v1.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.