skywalker-labs / toolkit
A comprehensive toolkit for Laravel package and application development.
Fund package maintenance!
ermradulsharma
Installs: 67
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/skywalker-labs/toolkit
Requires
- php: ^7.1|^7.2|^7.3|^7.4|^8.0|^8.1|^8.2|^8.3|^8.4|^8.5
- illuminate/cache: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/console: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/contracts: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/database: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- laravel/framework: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- orchestra/testbench: ^3.5|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
- phpunit/phpunit: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
README
🧱 Skywalker Toolkit
The Architectural Foundation for Elite Laravel Engineering
Skywalker Toolkit is not just a utility package; it is a Framework within a Framework. It enforces strict Consistency, Speed, and Security across your entire Laravel ecosystem, eliminating the need to rewrite complex boilerplate code.
🏗️ The Core Pillars
1. Unified API Standard (ApiResponse)
Ensure every microservice speaks the same language. The ApiResponse trait provides standardized JSON structures for elite front-end consumption.
use Skywalker\Support\Http\Concerns\ApiResponse; class UserController extends Controller { use ApiResponse; public function show($id) { $user = User::find($id); return $this->apiSuccess($user, "User profile retrieved"); } }
Available Methods:
apiSuccess($data, $message, $code): Standard 200/Success response.apiError($message, $code, $errors): Standard 400/Error response with error tracking.apiCreated($data, $message): Optimized 201/Created response.apiNoContent(): Clean 204 response.
2. Prefixed Architecture (PrefixedModel)
Prevent database collision in multi-package environments. The PrefixedModel allows you to isolate table names dynamically.
abstract class LocationModel extends PrefixedModel { protected $prefix = 'location_'; // Resulting table: location_locations }
3. Advanced I/O & Profiling (Command)
Console commands designed for production. Integrated framing and structured output for professional DX.
class SyncCommand extends \Skywalker\Support\Console\Command { public function handle(): int { $this->frame("Starting Elite Sync Process"); // Your logic here return 0; } }
4. Logic-Rich Traits & Utilities
From Enum support to sophisticated Data Transfer Objects (DTO), Toolkit provides the tools to build immutable and predictable logic layers.
🛰️ Powering the Ecosystem
Toolkit forms the backbone of all Skywalker-Labs packages. It allows them to interact seamlessly without configuration bloat.
- 🏙️ skywalker-labs/location: Uses
PrefixedModelandApiResponsefor geoservice isolation. - 📂 log-viewer: Extends
ToolkitControllerfor standardized telemetry display.
🩺 Secret Feature: Integrated HealthCheck
Monitor your entire vault of Skywalker packages with a single call.
use Skywalker\Support\Support\Health; $status = Health::check(); // Returns deep-check of Database, Storage, and Skywalker Package Config (Location, Log-Viewer, Entrust)
⚡ Efficiency Benchmarks
| Activity | Standard Laravel | Skywalker Toolkit | Performance |
|---|---|---|---|
| New Package Discovery | 30 mins | 2 mins | 15x Faster |
| API Debugging | High (Varied schema) | Zero (Standardized) | Elite DX |
| Collision Risk | High (Global namespace) | Zero (Prefixed) | Bulletproof |
Created & Maintained by Skywalker-Labs. The foundation for excellence.