Download the PHP package sopheak/sp-laravel-api without Composer

On this page you can find all versions of the php package sopheak/sp-laravel-api. 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 sp-laravel-api

SP Laravel Unified API

Latest Stable Version Total Downloads PHP Version License Security

sopheak/sp-laravel-api is a comprehensive, config-driven REST API package for Laravel applications. It replaces repetitive controllers, boilerplate query builders, and manual CRUD endpoints with declarative schema definitions while providing standardized API responses, multi-tenant isolation, granular field permissions, transactional audit trails, file attachment workflows, and AI/MCP tool integrations.

The package owns API infrastructure, dynamic endpoint resolution, query filtering, and audit logging. Your application defines the table schemas, business rules, custom functions, and authorization policies.

Public package links:


Features

Feature What it provides Default Guide
Config-Driven Dynamic CRUD Declarative RecordTableType schema; automatic GET, POST, PUT, DELETE, and atomic upsert endpoints Enabled CRUD Operations
Standardized API Envelope Consistent JSON response format ({ success, error_code, data, meta }), request IDs, and microsecond execution timing Enabled API Responses
Multi-Tenant Isolation Automatic tenant scoping via X-Tenant-ID header across queries, includes, bulk operations, and cache namespaces Enabled Tenant Isolation
Advanced Query Filtering PostgREST-style operators (eq, neq, like, in, gt, gte, between, is_null), sorting, and field projection Enabled Query Filters
Relational Includes Subquery loading and JOIN resolution via select= query syntax (RecordHasManyType, RecordBelongsToType, etc.) Enabled Relationships
Pagination Engine Offset-based (page/per_page) and cursor-based pagination for high-volume datasets Enabled Pagination
Bulk Operations High-throughput batch create, update, delete, and upsert with queue support Enabled Bulk Operations
Permissions & RLS Scoping Column hidden lists (columnHiddens), operation guards (canRead, canCreate), viewOwn scoping, and Laravel Gate integration Enabled Permissions
Transactional Audit Logging Comprehensive change tracking (old/new diffs, actor ID, client IP, user agent, tenant ID) with queue buffering Enabled Audit Logging
Attachments & Direct Upload S3/Cloudflare R2 direct uploads, multipart upload, presigned private preview URLs, and image resizing Configurable Attachments
Real-time OpenAPI Generator Dynamic OpenAPI 3.0 specification auto-generated from active table types and custom function attributes Enabled OpenAPI Docs
API Client Exporters Instant export to Bruno (.bru) and Postman collection files with auth header management Enabled API Clients
Table Triggers & Hooks Lifecycle hooks (beforeCreate, afterUpdate, etc.) and database triggers for custom domain rules Configurable Record Hooks
AI SDK & MCP Record Tools First-class AI tools and Model Context Protocol (MCP) server driver (laravel/mcp, laravel/ai) for agentic workflows Optional AI & MCP
Cache Management High-performance per-table and query caching with automatic cache invalidation on writes Optional (Opt-in) Cache Guide

Core package features

The enabled-by-default core provides enterprise SaaS applications with a unified API layer while leaving application-specific business logic in your app:


🚀 Quick Start

Requirements

Installation

  1. Install the package via Composer:

  2. Publish package configuration and migrations:

  3. Run the database migrations:

  4. Validate the installation configuration:

⚙️ Configuration Example

Define a table configuration in config/records/tables/orders.php:

Dynamic Endpoints Generated

Once the table config is defined, the package instantly generates standard RESTful endpoints:

Method Endpoint Description
GET /api/records/orders List records with filtering, sorting, pagination, and includes
GET /api/records/orders/{id} Retrieve a single record by ID
POST /api/records/orders Create a new record
PUT /api/records/orders/{id} Update an existing record
DELETE /api/records/orders/{id} Delete a record
POST /api/records/orders/upsert Atomically insert or update records

Querying with Filters & Relationships

Standard Response Structure


🛠️ Artisan CLI Tooling

The package provides Artisan commands for developer workflows:

Command Description
php artisan sp-laravel-api:setup Publish package configuration and database migrations
php artisan sp-laravel-api:record {name} Scaffold a new table configuration schema
php artisan sp-laravel-api:validate Validate all active table definitions and relationships
php artisan sp-laravel-api:export-openapi Export full OpenAPI 3.0 specification file
php artisan sp-laravel-api:export-bruno Export Bruno (.bru) API client collection
php artisan sp-laravel-api:export-postman Export Postman API client collection
php artisan sp-laravel-api:agent Scaffold AI agent skills, rules, and MCP configuration

📚 Documentation

For complete guides, interactive examples, architecture overviews, and API references, visit:


📄 License

This package is proprietary software. All rights reserved.


All versions of sp-laravel-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4|^8.5
intervention/image Version ^4.0
laravel/framework Version ^12.0|^13.0
nesbot/carbon Version ^2.0|^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 sopheak/sp-laravel-api contains the following files

Loading the files please wait ...