Download the PHP package zpm-packages/server-access-laravel without Composer
On this page you can find all versions of the php package zpm-packages/server-access-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zpm-packages/server-access-laravel
More information about zpm-packages/server-access-laravel
Files in zpm-packages/server-access-laravel
Package server-access-laravel
Short Description Laravel integration layer for database-backed and direct-mode server access management on top of zpm-packages/server-access.
License MIT
Informations about the package server-access-laravel
ZPMPackages Server Access Laravel
Laravel integration for zpm-packages/server-access. It adds Laravel service registration, Eloquent-backed synchronization, configured server resolution, direct-mode access to the current machine, scheduled sync support, and package migrations/models for server, user, and key records.
What This Package Adds
- Laravel service container bindings for the SSH manager resolver and helper services.
- Config-driven server access for current-system or remote-manager workflows.
- Database-backed sync for
SshServer,SshUser, andSshKeymodels. - Direct-mode records for working without syncing to database tables.
- Artisan commands to bootstrap and resync server-access tables.
- Scheduled syncing when database mode is enabled.
Installation
If you want package configuration in your app:
If you want the package database tables:
Or let the package run the initial migration and sync flow for you:
Default Config
The package exposes config/ssh-management.php.
Mode 1: Direct Mode
Set sync_with_database to false when you want to read and mutate the current system or configured servers without persisting SSH users and keys to the package database tables.
Example Config
List Configured Servers
Find a Configured Server
List Direct Users
Create a Direct User
Update or Delete a Direct User
Create or Generate Direct Keys
Update or Delete Direct Keys
Mode 2: Database Sync Mode
Set sync_with_database to true when you want the package models to be the app-level source of truth and have the package synchronize them to the OS/provider layer.
Example Config
Sync One User Model to the Provider
Create a User and Push It to the System
Delete a Synced User
Generate a Managed Key for an Existing User
Resolver Examples
The resolver is the main way to discover configured servers and create the underlying provider manager.
System User Management Examples
Sync Commands
Run a full database sync:
Run migrations plus the initial sync:
Scheduling
When sync_with_database is enabled, the package automatically registers the scheduled sync command after Laravel resolves the scheduler. The frequency comes from ssh-management.database_sync_schedule and defaults to hourly.
Model Customization
You can point the package at your own Eloquent models by replacing the values in ssh-management.models as long as they expose the fields and relations expected by the services.
Notes
can_read_entries,can_write_entries, andcan_manage_entriesare explicit booleans on the user model.permissionsis the structured per-user permission payload that maps toSshPermissionEntity.changeCurrentSystemManagerUser()only supports the current-system server flow.- Updating the active manager user's password is blocked unless
ssh-management.allow_manager_password_updateis enabled.
All versions of server-access-laravel with dependencies
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
zpm-packages/server-access Version ^1.0