Download the PHP package laravelplus/commander without Composer
On this page you can find all versions of the php package laravelplus/commander. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravelplus/commander
More information about laravelplus/commander
Files in laravelplus/commander
Package commander
Short Description Command execution tracking and management for Laravel applications
License MIT
Informations about the package commander
LaravelPlus Commander
A modern Laravel package for tracking and managing command executions with detailed analytics, beautiful UI, and comprehensive command management features.
๐ Requirements
- PHP: 8.4 or higher
- Laravel: 12.x or higher
- Vue.js: 3.x (included via CDN)
- Tailwind CSS: 3.x (included via CDN)
๐ฆ Installation
Production Installation
For production projects, install via Composer:
Development Installation
For development or local projects, add to your composer.json:
Then run:
Setup Steps
-
Publish migrations and config:
-
Run migrations:
- Access the interface:
- Visit:
http://your-app.com/admin/commander - Default URL can be configured in
config/commander.php
- Visit:
โ๏ธ Configuration
The package is highly configurable through the config/commander.php file:
Basic Configuration
Command Management Configuration
๐งช Testing
The package includes comprehensive test coverage with 54 tests and 166 assertions:
Test Coverage
- โ Unit Tests: 51 tests covering all action classes, controllers, and services
- โ Feature Tests: 3 tests covering API endpoints and dashboard functionality
- โ Database Tests: Full database testing with SQLite in-memory database
- โ Mock Testing: Comprehensive mocking of dependencies
- โ Error Handling: Tests for all error scenarios and edge cases
- โ PHPUnit 11: Latest testing framework with improved performance
Test Structure
๏ฟฝ๏ฟฝ URL Configuration
You can customize the commander interface URL by setting the COMMANDER_URL environment variable:
โจ Features
๐ฏ Core Functionality
- โ Command Execution Tracking: Track when commands were last run with detailed metrics
- โ Execution History: View detailed history of all command executions with search and filtering
- โ Performance Analytics: Track execution times, success rates, and performance trends
- โ User Tracking: Track which user executed each command with audit trail
- โ Real-time Interface: Modern Vue 3 powered interface with real-time updates
๐จ User Interface
- โ Beautiful Modern UI: Clean, responsive design with Tailwind CSS
- โ Command Arguments Support: Dynamic forms for commands with arguments and options
- โ Confirmation Dialogs: Safety-first approach with confirmation before execution
- โ Improved Modals: Better modal design that doesn't get cut off
- โ Visual Indicators: Clear status indicators for command states
- โ Responsive Design: Works perfectly on desktop, tablet, and mobile
๐ง Command Management
- โ Disabled Commands: Mark commands as disabled (read-only) in the interface
- โ Excluded Commands: Completely hide commands from the interface
- โ Pattern Matching: Support for wildcard patterns in command filtering
- โ Command Categories: Organize commands by namespace/category
- โ Search & Filter: Powerful search and filtering capabilities
๐ Analytics & Monitoring
- โ Dashboard Statistics: Overview of command execution metrics
- โ Activity Monitoring: Real-time activity feed with filtering
- โ Failed Command Tracking: Dedicated interface for failed commands
- โ Retry Functionality: Retry failed commands with original parameters
- โ Schedule Management: Interface for managing scheduled commands
โ๏ธ Configuration & Security
- โ Highly Configurable: Extensive configuration options
- โ Security Features: CSRF protection, user authentication
- โ Output Storage: Store command output with configurable limits
- โ Retention Policy: Automatic cleanup of old execution records
- โ Environment Support: Different settings for different environments
๐ฏ Usage
Accessing the Interface
Once installed, you can access the commander interface at:
Interface Features
๐ Command List
- View all available commands with their descriptions
- See last execution time and status
- Filter by category or search by name
- Execute commands with confirmation dialog
โ๏ธ Command Arguments
- Dynamic forms for commands with arguments
- Support for required and optional arguments
- Default value handling
- Option flags and values
๐ Execution History
- Detailed execution history for each command
- Success/failure status tracking
- Execution time and output storage
- User tracking for audit purposes
๐ Analytics Dashboard
- Overview of command execution metrics
- Success rate statistics
- Popular commands tracking
- Recent activity feed
โ Failed Commands
- Dedicated interface for failed commands
- Retry functionality with original parameters
- Error analysis and debugging
- Bulk retry operations
โฐ Schedule Management
- Interface for managing scheduled commands
- Next run time calculations
- Schedule status monitoring
- Manual execution of scheduled commands
Helper Functions
The package provides helper functions for easy access:
Manual Tracking
You can also manually track command executions:
Querying Execution Data
๐ API Endpoints
The package provides several API endpoints for managing command executions:
Get Commands with History
Returns all commands with their last execution time and statistics.
Get Command History
Returns paginated history of executions for a specific command.
Get Command Statistics
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
Pull Request Process
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests for new functionality
- Ensure all tests pass (
php vendor/bin/phpunit) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This package is open-sourced software licensed under the MIT license.
๐ Acknowledgments
- Built with Laravel 12+
- UI powered by Vue 3
- Styled with Tailwind CSS
- Testing with PHPUnit
- Requires PHP 8.4+
๐ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
Made with โค๏ธ by the LaravelPlus Team