PHPackages                             redsky/ui - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. redsky/ui

ActiveProject[Utility &amp; Helpers](/categories/utility)

redsky/ui
=========

Interface de Usuario (UI) para usar la API REST skynet-api

00JavaScript

Since May 8Pushed 1w agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Ah, I see the issue — there’s a **nested code block problem**. You have a `markdown` block that contains other triple-backtick blocks (`php and `bash) inside it. Markdown doesn’t like nested triple-backticks of the same kind — it breaks the rendering.

Here’s how to fix it:

1. **Use four backticks for the outer block** (````markdown) if you need to nest inner ``` blocks.
2. Or remove the outer `markdown and keep only normal text with nested `php / ```bash.

Here’s a **cleaned-up version** for your README.md:

```
# Skynet UI

**Skynet UI** is a PHP frontend interface for interacting with Skynet REST APIs.
It uses `skynet-core` for core functionality, including helpers, API client, HTTP handling, and reusable utilities.

---

## Features

- **User registration** integrated with `skynet-api`.
- Blade-like template system with:
  - Views and layouts
  - Sections and yields
  - CSRF protection
- Form handling with:
  - Old input repopulation
  - Validation error display
  - Success messages
- Toolbox helper for action buttons (icon-based)
- Dark mode styling for forms and UI elements
- Fully integrated with `skynet-core` helpers and API Client

---

## Installation

Clone the repository:

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

Install dependencies:

```
composer install
```

Make sure `skynet-core` is installed as a dependency:

```
composer require julioxfiles/skynet-core
```

---

Usage
-----

[](#usage)

### Serve locally

[](#serve-locally)

With XAMPP, make sure the `DocumentRoot` points to `skynet-ui/public` or use the built-in PHP server:

```
php -S localhost:8000 -t public
```

Visit  to see the registration form.

### Register a user

[](#register-a-user)

The `RegisterController` handles the registration form:

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

$data = [
    'name' => 'John Doe',
    'email' => 'john@example.com',
    'password' => 'secret',
    'password_confirmation' => 'secret'
];

try {
    $api = new ApiClient();
    $api->post('/auth/register', $data);

    $_SESSION['success'] = 'Account created successfully';

} catch (ApiValidationException $e) {
    $_SESSION['errors'] = $e->errors();
    $_SESSION['old'] = $data;
}
```

---

### Blade-like Templates

[](#blade-like-templates)

```
