Download the PHP package nawasara/registry without Composer

On this page you can find all versions of the php package nawasara/registry. 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 registry

Nawasara Registry

Master data for the Nawasara superapp framework: organizational units (OPD), persons in charge (PIC), and a generic asset ownership index that other packages link into.

Features

Installation

Auto-discovered.

Asset linking pattern

Other packages create an asset row whenever they create a managed resource:

Resource list pages then look up the asset map in one query:

Pages

Route Permission
/admin/registry/opd registry.opd.view
/admin/registry/pic registry.pic.view
/admin/registry/asset registry.asset.view

API

Butuh nawasara/api. Kalau paket itu tidak terpasang, route tidak di-mount.

Registry adalah data master organisasi, jadi ini endpoint yang paling berguna untuk berbagi data antar aplikasi: dua sistem bisa memakai daftar OPD yang sama alih-alih masing-masing menyimpan salinan yang lambat laun berbeda.

Scope

Scope Akses
registry.opd.read Daftar OPD: kode, nama, alamat, kontak dinas
registry.asset.read Domain, subdomain, akun layanan + penanggung jawab
registry.membership.read Pegawai mana bertugas di dinas mana

Keanggotaan dipisah karena ia memetakan orang ke organisasi, sedangkan dua yang lain adalah data organisasi.

Endpoint

Method Path Query
GET /api/v1/registry/opd q, per_page (maks 200)
GET /api/v1/registry/opd/{code} dicari lewat kode, bukan id
GET /api/v1/registry/assets q, type, status, opd (kode), per_page
GET /api/v1/registry/assets/{id}
GET /api/v1/registry/memberships opd (kode), aktif (1 default | 0 | all), per_page

Parameter multi-nilai menerima koma: ?type=domain,subdomain.

Pakai code OPD dan keycloak_id orang untuk menautkan data lintas sistem — keduanya bertahan meski nama atau username berubah. id baris hanya bermakna di dalam Nawasara.

Yang tidak dikembalikan

Catatan bila ScopedToOpd dipasang ke Asset

Saat ini Asset tidak memakai trait itu. Kalau suatu saat dipasang, endpoint aset harus ditinjau ulang: MembershipResolver memperlakukan permintaan tanpa user login sebagai privileged, dan token API tidak punya user — jadi penyaringan per-OPD akan terlewat begitu saja tanpa error.

Author

Pringgo J. Saputro <[email protected]>

License

MIT


All versions of registry with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^12.0
spatie/laravel-permission Version ^6.0
spatie/laravel-activitylog Version ^4.9
nawasara/ui Version *
nawasara/keycloak Version *
nawasara/search Version *
livewire/livewire Version ^3.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 nawasara/registry contains the following files

Loading the files please wait ...