jeffersongoncalves/filament-satis
Composer 安装命令:
composer require jeffersongoncalves/filament-satis
包简介
A Filament plugin for managing private Composer repositories with Satis
README 文档
README
Filament Satis
A Filament plugin for managing private Composer repositories powered by Satis.
Features
- Package Management — Add and manage Composer & GitHub package sources with CRUD operations
- Token-Based Auth — Secure access with per-token package scoping
- Dev Packages — Mark packages as development-only with
is_devflag - Version Tracking — Automatic tracking of package releases synced from Satis builds
- Download Statistics — Per-version download tracking and analytics
- Dependency Mapping — Public/private dependency classification from package releases
- Multi-Tenancy — Tenant-isolated data with configurable foreign keys
- Credential Validation — Verify package accessibility with tracked validation timestamps
- Intelligent Validation — Timestamp-based comparison to skip unnecessary rebuilds
- Auth.json Support — Automatic auth.json generation for authenticated Composer builds
- Credential Sanitization — Remove transport-options from Satis JSON files to prevent credential leaks
- GitHub Webhooks — Auto-rebuild on push, release and create events with HMAC-SHA256 signature validation
- Per-Resource Config — Customize navigation, icons, slugs, clusters, and visibility per resource
- Global Search — Search packages, tokens, releases, and dependencies from the global search bar
- Bilingual — English and Brazilian Portuguese translations included
- Laravel Boost — AI guidelines and skills for assisted development
Version Compatibility
| Plugin Version | Filament | Laravel | PHP |
|---|---|---|---|
| 1.x | ^3.0 | ^10 | ^11 | ^12 | ^8.1 |
| 2.x | ^4.0 | ^11.0 | ^8.2 |
| 3.x | ^5.0 | ^11.28 | ^8.3 |
Requirements
- PHP
^8.3 - Laravel
^11.28 - Filament
^5.0 - jeffersongoncalves/laravel-satis
^1.0
Installation
You can install the package via composer:
1. Require the packages
composer require jeffersongoncalves/filament-satis
This will automatically install jeffersongoncalves/laravel-satis as a dependency.
2. Publish and run migrations
php artisan vendor:publish --tag="satis-migrations"
php artisan migrate
3. Publish the config (optional)
php artisan vendor:publish --tag="filament-satis-config" php artisan vendor:publish --tag="satis-config"
Quick Start
1. Register the plugin
Add the plugin to your Filament panel provider:
use JeffersonGoncalves\FilamentSatis\FilamentSatisPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ FilamentSatisPlugin::make(), ]); }
2. Create packages and tokens
- Navigate to Satis > Packages in the admin panel
- Add a package with its repository URL
- Navigate to Satis > Tokens and create an authentication token
- Associate the token with the packages it should access
3. Build the repository
php artisan satis:build
4. Configure your client
In your client project's composer.json:
{
"repositories": [
{
"type": "composer",
"url": "https://your-app.com/satis"
}
]
}
Authenticate with the token:
composer config http-basic.your-app.com token "your-64-char-token-here"
Multi-Tenancy
Enable tenant isolation for packages, tokens, and builds:
use JeffersonGoncalves\FilamentSatis\FilamentSatisPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ FilamentSatisPlugin::make() ->tenancy( enabled: true, model: \App\Models\Team::class, foreignKey: 'team_id' ), ]); }
The plugin automatically:
- Sets the
satistenancy configuration duringregister() - Configures the tenant resolver using
filament()->getTenant()duringboot() - Scopes all queries and auto-sets the foreign key on creation
Configuration
Filament Plugin Config
The config/filament-satis.php file provides per-resource customization:
return [ // Shared navigation group for all resources 'navigation_group' => 'Satis', // Per-resource configuration 'package_resource' => [ 'cluster' => null, // Filament cluster class 'should_register_navigation' => true, // Show in sidebar 'navigation_icon' => 'heroicon-o-cube', // Heroicon name 'navigation_sort' => 1, // Sort order 'slug' => 'satis/packages', // URL slug ], 'token_resource' => [ 'cluster' => null, 'should_register_navigation' => true, 'navigation_icon' => 'heroicon-o-key', 'navigation_sort' => 2, 'slug' => 'satis/tokens', ], 'package_release_resource' => [ 'cluster' => null, 'should_register_navigation' => true, 'navigation_icon' => 'heroicon-o-tag', 'navigation_sort' => 3, 'slug' => 'satis/package-releases', ], 'package_download_resource' => [ 'cluster' => null, 'should_register_navigation' => true, 'navigation_icon' => 'heroicon-o-arrow-down-tray', 'navigation_sort' => 4, 'slug' => 'satis/package-downloads', ], 'dependency_resource' => [ 'cluster' => null, 'should_register_navigation' => true, 'navigation_icon' => 'heroicon-o-link', 'navigation_sort' => 5, 'slug' => 'satis/dependencies', ], ];
Laravel Satis Config
The config/satis.php file configures the core backend:
return [ // Multi-tenancy 'tenancy' => [ 'enabled' => false, 'model' => null, 'foreign_key' => null, 'ownership_relationship' => null, 'resolver' => null, ], // Database table prefix (set to null for unprefixed tables) 'table_prefix' => 'satis_', // Override default model classes 'models' => [ 'package' => \JeffersonGoncalves\LaravelSatis\Models\Package::class, 'token' => \JeffersonGoncalves\LaravelSatis\Models\Token::class, // ... ], // Storage for Satis builds 'storage_disk' => 'local', 'storage_path' => 'satis', // Satis build configuration 'satis' => [ 'name' => 'my/repository', 'output_html' => false, 'archive' => ['directory' => 'archives', 'skip_dev' => true], 'minimum_stability' => 'stable', 'secure_http' => false, ], // Queue settings 'queue' => [ 'connection' => null, 'queue_name' => null, 'timeout' => 86400, // 24 hours ], // Scheduled command frequencies 'schedule' => [ 'build' => 'weekly', 'token_build' => 'weekly', 'validate' => 'hourly', 'sanitize' => 'daily', 'dependencies' => 'weekly', ], // Auth guard and provider 'auth' => ['guard' => 'satis-token', 'provider' => 'satis-tokens'], // Route prefixes and middleware (set composer_prefix to null for no prefix) 'routes' => [ 'api_prefix' => 'api/satis', 'composer_prefix' => 'satis', 'middleware' => ['api'], ], ];
Resources
The plugin registers 5 Filament resources:
| Resource | Operations | Description |
|---|---|---|
| PackageResource | List, Create, View, Edit, Delete | Manage Composer & GitHub package sources |
| TokenResource | List, Create, View, Edit, Delete | Manage authentication tokens with package scoping |
| PackageReleaseResource | List, View | View package versions synced from Satis builds |
| PackageDownloadResource | List | View per-version download statistics |
| DependencyResource | List, View | View public/private dependency mapping |
Relation Managers
- PackageResource includes
ReleasesRelationManagerandDownloadsRelationManager - DependencyResource includes
PackageReleasesRelationManager
Customization Examples
Hide a resource from navigation
// config/filament-satis.php 'package_download_resource' => [ 'should_register_navigation' => false, // ... ],
Change navigation icons
'package_resource' => [ 'navigation_icon' => 'heroicon-o-archive-box', // ... ],
Group resources in a cluster
'package_resource' => [ 'cluster' => \App\Filament\Clusters\SatisCluster::class, // ... ], 'token_resource' => [ 'cluster' => \App\Filament\Clusters\SatisCluster::class, // ... ],
Change the navigation group
'navigation_group' => 'Package Management',
Override model classes
// config/satis.php 'models' => [ 'package' => \App\Models\CustomPackage::class, ],
Custom models must extend the base models from the package.
Translations
The plugin includes English and Brazilian Portuguese translations.
Publish translations
php artisan vendor:publish --tag="filament-satis-translations"
Translation files use the filament-satis:: namespace:
__('filament-satis::package.navigation_label') __('filament-satis::package.fields.name') __('filament-satis::general.created_at')
Commands
| Command | Description |
|---|---|
php artisan satis:build |
Build Satis repository (tenant-based) |
php artisan satis:build --tenant=1 |
Build for a specific tenant |
php artisan satis:token-build |
Build Satis repository (token-based) |
php artisan satis:token-build --token=5 |
Build for a specific token |
php artisan satis:validate |
Validate builds and trigger rebuilds if needed |
php artisan satis:clean |
Clean all Satis builds from storage |
php artisan satis:clean --force |
Force clean without confirmation |
php artisan satis:sanitize |
Remove credentials from Satis JSON files |
php artisan dependency:packages |
Process and sync package dependencies |
GitHub Webhooks
Each package auto-generates a webhook_secret and reference. Configure your GitHub webhook:
- URL:
https://your-app.com/api/satis/webhooks/github/{reference} - Secret: The
webhook_secretfrom the package edit form - Events: Push, Release, Create
- Content Type:
application/json
The webhook handler:
- Validates the package is a GitHub type
- Filters supported events (
push,release,create) - Verifies HMAC-SHA256 signature when a secret is configured
- Dispatches tenant and token rebuilds
Laravel Boost Integration
This package includes Laravel Boost guidelines and skills for AI-assisted development. When Boost is installed in your project, run:
php artisan boost:install
The plugin's AI guidelines and skills will be automatically detected and available to your coding agent.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
jeffersongoncalves/filament-satis 适用场景与选型建议
jeffersongoncalves/filament-satis 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 55 次下载、GitHub Stars 达 8, 最近一次更新时间为 2026 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「repository」 「laravel」 「satis」 「filament」 「private-packages」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeffersongoncalves/filament-satis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeffersongoncalves/filament-satis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeffersongoncalves/filament-satis 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Laravel 5 - Repositories to the database layer
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Structure for the Laravel Service-Repository Pattern
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-16
