Create Hubleto app

Customize Hubleto to fit your needs.

Download & install your Hubleto
Download & install

Learn how to create apps
https://developer.hubleto.com/create-first-app

You like it?

Do you like Hubleto? Support us or help us improve.
content-image
Addressbook rendered using TableCompanies.tsx, FormCompany.tsx and Model/Company.php.
content-image
List of products with color scales.
Create model

Easily describe your data structures.

public function columns(array $columns = []): array {
  return [
    'name' => [ 'type' => 'varchar', 'title' => 'Name' ],
    'id_owner' => [ 'type' => 'lookup', 'title' => Owner, 'model' => User::class ],
  ]));
}
Add controller

Prepare parameters for the view.

public function prepareView(): void {
  parent::prepareView();
  $this->setView('@app/MyApp/Views/Contacts.twig');
}
Create view

Make your app pretty looking.

<app-table
  string:model="HubletoApp/External/MyApp/Models/Contact"
  int:id="{{ viewParams.recordId }}"
></app-table>
Define routes

Publish your work.

public function init(): void {
  $this->main->router->httpGet([
    '/^my-app\/contacts\/?$/' => Controllers\Contacts::class
  ]);
}
Translate your app

Expand your opportunities world-wide.

<a href="{{ rootUrl }}/invoice/send" class="btn btn-primary">
  <span class="icon"><i class="fas fa-share"></i></span>
  <span class="text">{{ translate('Send invoice') }}</span>
</a>
Write tests

Develop good quality apps.

class RenderAllRoutes extends \HubletoMain\Core\AppTest {
  public function run(): void {
    $this->cli->cyan("Rendering route 'customers/companies'.\n");
    $this->main->render('customers/companies');
  }
}
Install

Add your app to your Hubleto desktop.

php hubleto app install \HubletoApp\External\MyApp\Loader