Download the PHP package innonazarene/prism-init without Composer

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

Prism Init

CI Latest Version PHP Laravel

Prism Init scaffolds a complete, convention-following backend API from your existing database in one command.


What gets generated per table

Artifact Path (grouped, default)
Eloquent Model app/Models/Employee/Employee.php
Service app/Services/Employee/EmployeeService.php
Controller app/Http/Controllers/Api/V1/Employee/EmployeeController.php
Store Request app/Http/Requests/Employee/StoreEmployeeRequest.php
Update Request app/Http/Requests/Employee/UpdateEmployeeRequest.php
API Resource app/Http/Resources/Employee/EmployeeResource.php
Policy app/Policies/Employee/EmployeePolicy.php
API Routes routes/api.phpRoute::apiResource('employees', …)

Plus, once:

Artifact Path
ApiResponse Trait app/Traits/ApiResponse.php

Conventions followed

Database (3.3.1)

PHP / Laravel (3.3.2)


Requirements

PHP ^8.1
Laravel ^10 | ^11 | ^12 | ^13

Installation

Publish the config if you want to customise defaults:

Publish stubs to customise them (optional):


Usage

Options

Option Description
--prefix=v1 Route prefix (default: v1/api/v1/…)
--grouped Force grouped folder structure
--flat Force flat folder structure
--no-timestamps Disable $timestamps on models
--no-soft-deletes Skip SoftDeletes on models
--skip-migrate Skip migration generation
--skip-seed Skip seeding
--skip-services Skip Service class generation
--skip-resources Skip API Resource generation
--skip-policies Skip Policy generation
--tables=users,products Only scaffold listed tables
--force Overwrite existing files

Examples


Generated output example

Given a departments table, Prism Init produces:

app/Models/Department/Department.php

app/Services/Department/DepartmentService.php

app/Http/Controllers/Api/V1/Department/DepartmentController.php

app/Http/Requests/Department/StoreDepartmentRequest.php

app/Http/Resources/Department/DepartmentResource.php

app/Traits/ApiResponse.php — envelope methods:

routes/api.php


Customising stubs

After publishing stubs (--tag=prism-init-stubs), edit any file in stubs/prism-init/. Prism Init always prefers your published stub over the package default.

Available stubs:

Stub Purpose
model.stub Eloquent model
service.stub Service class
controller.stub API controller
Store-request.stub Store Form Request
Update-request.stub Update Form Request
resource.stub API Resource
policy.stub Policy
api-response.stub ApiResponse trait

Optional Packages

Prism Init detects these packages at runtime. If installed, they are used automatically — if not, the step is skipped with an install hint.

Package Purpose
kitloong/laravel-migrations-generator Generate migrations from existing DB
orangehill/iseed Generate seeders from live data

Backup & re-running

On every run, Prism saves clean copies of routes/api.php and Controller.php to public/backup/ and restores them before regenerating — so you always start from a clean slate.


Contributing

Pull requests welcome. Please open an issue first to discuss changes.


License

MIT — see LICENSE.


All versions of prism-init with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
kitloong/laravel-migrations-generator Version ^7.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/filesystem Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 innonazarene/prism-init contains the following files

Loading the files please wait ...