PHPackages                             redsky/clean-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. redsky/clean-api

ActiveProject[API Development](/categories/api)

redsky/clean-api
================

PHP Clean Architecture API REST

00PHP

Since Mar 17Pushed 3mo agoCompare

[ Source](https://github.com/Julioxfiles/redsky-clean-api)[ Packagist](https://packagist.org/packages/redsky/clean-api)[ RSS](/packages/redsky-clean-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD Absolutely! Let’s summarize what I remember about **skynet-api** and then create a full **README.md** draft for it.

---

### What I remember about **skynet-api**

[](#what-i-remember-about-skynet-api)

- It's the backend REST API for your Skynet projects.
- Provides endpoints for user authentication and registration (at least `/auth/register`).
- Returns JSON responses, including proper validation errors.
- Works with `skynet-ui` as the frontend and `skynet-core` for API client and helpers.
- Uses HTTP status codes to indicate success (`2xx`) or errors (`4xx` for validation, `5xx` for server errors).
- Can be consumed via the `ApiClient` from `skynet-core`.

---

### Draft README.md for **skynet-api**

[](#draft-readmemd-for-skynet-api)

```
# Skynet API

**Skynet API** is a RESTful backend service for the Skynet project.
It provides endpoints for user authentication, registration, and other resources to be consumed by frontend applications like **skynet-ui**.

---

## Features

- **User Authentication & Registration**
  - `POST /auth/register` → Register a new user
  - `POST /auth/login` → Authenticate a user (planned)
  - Validation with proper HTTP error codes
- **JSON Responses**
  - Standardized response format
  - Returns `errors` for validation failures
  - Uses HTTP status codes for success and errors
- **Robust API Design**
  - RESTful conventions
  - Easily extendable for future resources
- **Integrates with Skynet UI and Core**
  - Can be consumed with `Core\Http\Client\ApiClient` from `skynet-core`

---

## Installation

Clone the repository:

```bash
git clone https://github.com/Julioxfiles/skynet-api.git
cd skynet-api
```

Install dependencies:

```
composer install
```

Set up environment variables:

```
cp .env.example .env

```

Configure database credentials and other settings in `.env`.

---

Usage
-----

[](#usage)

### Register a User

[](#register-a-user)

**Endpoint:** `POST /auth/register`

**Request Body (JSON):**

```
{
  "name": "John Doe",
  "email": "john@example.com",
  "password": "secret",
  "password_confirmation": "secret"
}
```

**Success Response:**

```
{
  "status": 201,
  "message": "User registered successfully",
  "data": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com"
  }
}
```

**Validation Error Response (422):**

```
{
  "status": 422,
  "message": "Validation failed",
  "errors": {
    "email": ["The email field is required."],
    "password": ["The password must be at least 6 characters."]
  }
}
```

---

### Integration with Skynet UI

[](#integration-with-skynet-ui)

```
use Core\Http\Client\ApiClient;
use Core\Http\Exceptions\ApiValidationException;

$api = new ApiClient();

try {
    $response = $api->post('/auth/register', [
        'name' => 'John Doe',
        'email' => 'john@example.com',
        'password' => 'secret',
        'password_confirmation' => 'secret'
    ]);

    if ($response->isSuccess()) {
        echo "User registered successfully!";
    }

} catch (ApiValidationException $e) {
    print_r($e->errors());
}
```

---

Folder Structure (example)
--------------------------

[](#folder-structure-example)

```
skynet-api/
├─ app/
│  ├─ Http/
│  │  ├─ Controllers/
│  │  └─ Middleware/
├─ routes/
│  └─ api.php
├─ database/
│  ├─ migrations/
│  └─ seeders/
├─ composer.json
├─ .env.example
└─ README.md

```

---

License
-------

[](#license)

MIT

```

---

If you want, I can **also make a shorter, GitHub-friendly “About” version** for `skynet-api` just like we did for `skynet-ui` and `skynet-core`.

Do you want me to do that?

```

=======

SkynetApi
---------

[](#skynetapi)

This is a Clean Architectural API starting proyect.

> > > > > > > 9f0501da6550a47bcd97870ced6ea08097d5cf6f

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance54

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/18ccf23987df237c623691625bc2a33e3eb0e13dca88ba812cbff52bcf1045c5?d=identicon)[jacosta](/maintainers/jacosta)

---

Top Contributors

[![Julioxfiles](https://avatars.githubusercontent.com/u/18542304?v=4)](https://github.com/Julioxfiles "Julioxfiles (6 commits)")

### Embed Badge

![Health badge](/badges/redsky-clean-api/health.svg)

```
[![Health](https://phpackages.com/badges/redsky-clean-api/health.svg)](https://phpackages.com/packages/redsky-clean-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
