eclipsephp/common
| Install | |
|---|---|
composer require eclipsephp/common:dev-main |
|
| PHP: | ^8.3 |
| License: | MIT |
| Last Updated: | Oct 14, 2026 |
| Links: | GitHub · Packagist |
Eclipse common package
About
This package contains all common non-opinionated code that is used in our Eclipse Filament plugins.
Requirements
- PHP 8.3 / 8.4 / 8.5
- Laravel 11 / 12
- Filament 5
- Laravel Scout
See composer.json for details.
Usage
composer require eclipsephp/common
Contributing
Issues
If you have some suggestions on how to make this package better, please open an issue or even better, submit a pull request.
Should you want to contribute, please see the development guidelines in the DataLinx PHP package template.
Development
- All development is subject to our PHP package development guidelines.
- Our Filament app development docs will also be helpful.
- Any PRs will generally need to adhere to these before being merged.
Requirements
See here.
Get started
- Clone the git repo
- Start the Lando container
lando start - Install dependencies (this also runs the setup composer script)
lando composer install - You can now develop and run tests. Happy coding 😉
Workbench + Lando (browser testing)
This package ships with a minimal Testbench Workbench, so you can run the Filament UI without a separate app:
-
Clone the repository
-
Start the container
lando start -
Open the admin panel at
https://eclipse-plugin-template.lndo.site/admin
No login required – you'll be automatically signed in as a test user with full permissions.
Notes:
- The container serves
workbench/publicas the webroot. - Use
lando testforpackage:testandlando testbenchfor other Testbench commands. - No Telescope, websockets or health checks are enabled to keep the setup minimal.
Using the workbench and test case in other packages
Other Eclipse packages can reuse the shared workbench (panel, user model, migrations, seeder) and the base test case.
- Register the shared provider and seeder in the package's
testbench.yaml:providers: - Eclipse\Common\Workbench\Providers\WorkbenchServiceProvider seeders: - Eclipse\Common\Workbench\Database\Seeders\DatabaseSeeder - Extend
Eclipse\Common\Testing\TestCasein the package'stests/TestCase.php:
To use a different user model, override thenamespace Tests; use Eclipse\Common\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase {}userModel()method. - Bind the test case in
tests/Pest.php:uses(Tests\TestCase::class) ->use(Illuminate\Foundation\Testing\RefreshDatabase::class) ->beforeEach(fn () => $this->migrate()->setUpUser()) ->in(__DIR__);
The package must have orchestra/testbench and pestphp/pest in its own require-dev.
Changelog
All notable changes to this project are automatically documented in the CHANGELOG.md file using the release workflow, based on the release-please GitHub action.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
For all this to work, commit messages must follow the Conventional commits specification, which is also enforced by a Git hook.
Related Packages
A powerful recursive comments system for Filament, allowing you to add nested co...
A modified version of the Filament Forms Repeater to display it as a table.