Download the PHP package augustpermana/hypervel-meta-generator without Composer

On this page you can find all versions of the php package augustpermana/hypervel-meta-generator. 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 hypervel-meta-generator

Hypervel Meta Generator

Hypervel Meta Generator adalah package powerful yang memungkinkan Anda dengan mudah melampirkan dan mengelola metadata untuk model Eloquent Anda tanpa memodifikasi tabel database utama mereka. Package ini menyediakan sistem key-value yang fleksibel dengan fitur deteksi tipe otomatis, casting, dan perintah artisan yang berguna untuk menyederhanakan instalasi dan maintenance.

🚀 Dibangun untuk Hypervel Framework - Framework PHP high-performance dengan dukungan coroutine native berbasis Swoole.


Daftar Isi


Fitur

Auto Type Detection - Deteksi tipe data otomatis (string, integer, boolean, json, datetime, dll) ✨ Type Casting - Casting otomatis saat retrieve data ✨ Query Scopes - Query builder scopes untuk filter berdasarkan metadata ✨ Artisan Commands - Generate metadata system dan clean orphaned records ✨ Coroutine Safe - Dioptimasi untuk environment Swoole/Hypervel dengan coroutine support ✨ Zero Table Modification - Tidak perlu mengubah tabel database utama


Instalasi

Ada dua cara untuk mengintegrasikan Hypervel Meta Generator ke dalam project Anda:

1. Via Packagist (Coming Soon)

Hypervel akan secara otomatis menemukan service provider melalui package discovery.

2. Menggunakan Local Repository

Jika package belum dipublish di Packagist, tambahkan sebagai local repository. Modifikasi composer.json project Anda:

Kemudian jalankan:


Penggunaan

Hypervel Meta Generator memungkinkan Anda melampirkan metadata ke model tanpa memodifikasi tabel database asli.

Melampirkan Metadata ke Model

  1. Generate Metadata Files:

    Jalankan artisan command untuk setup metadata system untuk model yang ada. Contoh untuk model Product:

    Saat Anda menjalankan command ini, akan melakukan:

    • Membuat Meta Model File: Generate file baru (contoh: ProductMeta.php) di direktori app/Models
    • Membuat Migration: Generate migration untuk membuat tabel metadata (contoh: product_meta)
  2. Update Model Asli:

    Anda harus secara manual update model asli (contoh: Product.php) untuk menyertakan trait HasMetadata:

  3. Jalankan Migration:

Mengelola Metadata

Setelah setup, Anda dapat menggunakan berbagai method untuk manage metadata:

Set Single Meta

Get Single Meta

Set Multiple Meta

Sync Meta (Replace All)

Check Meta Exists

Remove Meta

Query dengan Meta Scope


Artisan Commands

make:metadata

Generate metadata system untuk model yang sudah ada.

Command ini akan:

metadata:clean-orphaned

Membersihkan orphaned metadata records (metadata yang parent recordnya sudah dihapus).

⚠️ PERINGATAN: Command ini akan menghapus data dari database. Backup database Anda sebelum menjalankan command ini.


Konfigurasi

Package ini tidak memerlukan konfigurasi khusus. Namun, Anda dapat customize:

Custom Meta Model Location

Secara default, meta model akan dibuat di App\Models. Jika Anda ingin menggunakan lokasi berbeda, override method getMetaModelClass() di model Anda:

Supported Data Types

Package ini secara otomatis mendeteksi dan mendukung tipe data berikut:


Perbedaan dengan Laravel Version

Package ini adalah adaptasi dari augustpermana/laravel-meta-generator untuk Hypervel Framework dengan perubahan berikut:

Fitur Laravel Version Hypervel Version
Framework Laravel 8+ Hypervel 0.3+
Base Classes Illuminate\* Hypervel\*
PHP Version >= 7.3 >= 8.2
Coroutine Support
Swoole Extension Optional Required
Performance Standard High (Coroutine-based)
Package Discovery laravel key hypervel key

Performance Tips

1. Eager Loading Metadata

2. Batch Operations

3. Indexing

Tabel metadata secara otomatis memiliki composite index pada (foreign_key, key) untuk query yang lebih cepat.


Requirements


Contributing

Kontribusi sangat diterima! Silakan buat pull request atau buka issue di repository GitHub.


License

Package ini adalah open-source software yang dilisensikan di bawah MIT license.


Author

Agus Permana


Credits

Package ini terinspirasi dari kebutuhan untuk mengelola metadata dinamis tanpa mengubah struktur tabel database, dengan optimasi khusus untuk environment Hypervel yang high-performance.


Happy Coding with Hypervel! 🚀


All versions of hypervel-meta-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
hypervel/framework Version ^0.3
ext-json Version *
ext-swoole Version >=5.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 augustpermana/hypervel-meta-generator contains the following files

Loading the files please wait ...