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

v1.3.0 2026-02-15 10:49 UTC

This package is auto-updated.

Last update: 2026-02-15 11:52:52 UTC


README

🧱 Skywalker Toolkit

The Architectural Foundation for Elite Laravel Engineering

Latest Version Laravel Version PHP Version Pattern

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 PrefixedModel and ApiResponse for geoservice isolation.
  • 📂 log-viewer: Extends ToolkitController for 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.