Download the PHP package aero/aeroapi without Composer

On this page you can find all versions of the php package aero/aeroapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aeroapi

🚀 AeroAPI Framework

AeroAPI adalah framework PHP MVC kustom yang dirancang dengan performa tinggi, efisiensi memori maksimal, dan ramah pengembang (developer-friendly). Framework ini dilengkapi dengan integrasi bawaan Laravel Eloquent ORM, sistem IoC Service Autowiring Container, serta High-Precision API Benchmarking & Speed Tester bawaan.


🌟 Fitur Utama


🧭 Navigasi Dokumentasi

  1. Instalasi & Persiapan Awal
  2. Database & ORM Setup
  3. Models & Eloquent CRUD
  4. Routing & Controller
  5. Services & IoC Container
  6. Middleware Registration
  7. Error Handling & Debugging
  8. API Benchmarking Tool
  9. CLI Commands Reference

1. Instalasi & Persiapan Awal

Langkah A: Clone & Unduh Dependensi PHP

Jalankan Composer di terminal proyek untuk menginstal seluruh dependensi framework eksternal:

Langkah B: Konfigurasi Environment (.env)

Salin file template .env.example menjadi .env pada root direktori proyek, kemudian sesuaikan parameter koneksi database Anda:

Langkah C: Migrasi & Seeding Database

Buat database baru di DBMS Anda (seperti MySQL), lalu jalankan perintah CLI AeroAPI untuk mengisi skema tabel dan data awal:

Langkah D: Menjalankan Server Lokal

Mulai server web pengembangan lokal AeroAPI Anda dengan menggunakan built-in CLI server:


2. Database & ORM Setup

AeroAPI secara dinamis mendeteksi database driver Anda melalui parameter koneksi di file .env. Framework ini mendukung SQLite, MySQL, dan PostgreSQL secara native dengan penanganan path SQLite terisolasi.

Database Contoh Konfigurasi Driver di .env
SQLite DB_DRIVER=sqlite
DB_DATABASE=database/database.sqlite
MySQL DB_DRIVER=mysql, DB_HOST=127.0.0.1, DB_PORT=3306, DB_DATABASE=aero_db
PostgreSQL DB_DRIVER=pgsql, DB_HOST=127.0.0.1, DB_PORT=5432, DB_DATABASE=aero_db

3. Models & Eloquent CRUD

Semua model Anda ditempatkan di direktori app/Models/ dan mewarisi fungsionalitas Laravel Eloquent ORM:

Contoh Query CRUD di Controller:


4. Routing & Controller

AeroAPI memiliki sistem routing elegan di folder routes/web.php untuk memetakan URL langsung ke method Controller Anda.

A. Registrasi RESTful Routing (routes/web.php):

B. Route Grouping (Prefix & Middleware):


5. Services & IoC Container

AeroAPI dilengkapi dengan IoC Container yang powerful untuk melakukan autowiring dependensi class secara otomatis melalui constructor Controller menggunakan PHP Reflection.

Langkah A: Buat Class Service (app/Services/UserService.php)

Langkah B: Autowiring Dependency di Controller

Cukup lakukan type-hint service tersebut pada constructor controller Anda, IoC Container akan menyuntikkannya secara otomatis!


6. Middleware Registration

Metode A: Route-Level (Di routes/web.php)

Metode B: Controller-Level (Di Controller Constructor)


7. Error Handling & Debugging

AeroAPI mendeteksi parameter APP_DEBUG di file .env secara global untuk mengontrol keluaran detail error.

A. Mode Debug Aktif (APP_DEBUG=true)

Ketika terjadi error koding atau syntax PHP kustom, AeroAPI akan menghentikan eksekusi dan merender AeroAPI Debug Page yang berisi Exception Class, Error Message, Lokasi file absolut beserta baris tepat terjadinya error, dan Stack Trace lengkap.

B. Mode Produksi (APP_DEBUG=false)

AeroAPI mengamankan aplikasi dengan menyembunyikan detail teknis:


8. API Benchmarking Tool

AeroAPI dilengkapi dengan High-Precision API Benchmarking & Speed Tester bawaan berbasis CLI yang memungkinkan Anda melakukan stres-tes serta mengukur performa API secara real-time.

Cara Menulis Skenario Pengujian (tests/api/benchmark_post.php):

Kembalikan array konfigurasi pengujian:

Menjalankan Benchmarking di CLI:


9. CLI Commands Reference

AeroAPI CLI menyediakan perintah bawaan untuk membantu pengembangan sehari-hari:

Command Deskripsi
php aero serve Menjalankan web server pengembangan lokal di http://localhost:8000
php aero serve [port] Menjalankan web server pengembangan lokal di port kustom (misal: 8080)
php aero migrate Menjalankan migrasi struktur database ke DBMS Anda
php aero seed Mengisi database dengan data awal / dummy dari folder seeders/
php aero benchmark Menjalankan alat uji kecepatan API (memunculkan menu interaktif)

Selamat mengembangkan aplikasi hebat dengan AeroAPI Framework! 🚀


All versions of aeroapi with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/database Version ^11.0
illuminate/events Version ^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aero/aeroapi contains the following files

Loading the files please wait ...