Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Larapi Laravel Package

one2tek/larapi

Larapi is a Laravel package for building REST APIs with less boilerplate. It offers convenient response helpers, CRUD-oriented endpoints, and common API patterns so teams can ship consistent JSON APIs faster while staying within Laravel conventions.

View on GitHub
Deep Wiki
Context7

💛 Modern API development in Laravel. ✍️ Developed by Gentrit Abazi.

Frequently asked questions about Larapi
What is Larapi and what does it do?
Larapi is a Laravel package for building REST APIs with less boilerplate. It provides base controllers, a repository abstraction, response helpers, CRUD-oriented endpoints, and common API conventions so teams can ship consistent JSON APIs while staying within Laravel conventions. It is an opinionated scaffolding layer rather than a full API framework.
How do I install Larapi in a Laravel application?
Install it through Composer with composer require one2tek/larapi, then follow the package documentation for service provider registration, config publishing, and any route or middleware setup. For Laravel 9, use release 2.0.11 and confirm your application meets PHP >= 8.0.2. Because the assessment did not include source review, verify provider bootstrapping and route caching behavior in your app.
Does Larapi support Laravel 9?
Yes, release 2.0.11 adds Laravel 9 support according to the release notes. That release also raises the PHP floor to PHP >= 8.0.2. The assessment has low confidence because only release notes were reviewed and no CI matrix or test results were cited, so validate it on a branch before production.
Which Laravel and PHP versions does Larapi require?
Based on the 2.0.11 release notes, Larapi supports Laravel 9 and requires PHP >= 8.0.2. Earlier 2.0.x releases were used with Laravel 8, and the exact illuminate/* and php constraints should be checked in composer.json for the version you choose. The assessment notes no documented plan for Laravel 10 or 11.
How do I configure Larapi's service provider, config, and routes?
Follow the package documentation to register the service provider, publish configuration, and wire routes and middleware. Under Laravel 9, verify provider bootstrapping, config publishing, and route caching paths behave correctly, because the assessment flagged these as open feasibility questions. Run a smoke test over a representative route after configuration.
How should I test Larapi endpoints after upgrading?
Run your existing test suite plus a smoke pass over every route and controller Larapi provides. Check response formatting and exception rendering for silent behavior shifts. Use a throwaway branch, run composer update --dry-run first, inspect the lock diff, and stage under realistic load before promoting.
Is Larapi production-ready and well maintained?
The assessment describes Larapi as viable for greenfield internal APIs where scaffolding speed outweighs long-term vendor ownership. However, it is a thinly maintained third-party convention layer with a small maintainer set, and Laravel 9 support shipped as a patch release without cited CI or test evidence. It is a poor fit for platforms expected to live three or more years without a dependency reckoning, so budget for periodic forced upgrades.
What are alternatives to Larapi for Laravel REST APIs?
Alternatives include building your own base controllers, response macros, and repository abstractions so you own the convention layer. You can also use Laravel's built-in routing and API resources directly, or evaluate other Laravel API scaffolding packages. The key decision is whether you want a packaged convention layer you do not own or in-house base classes you control.
Does upgrading Larapi from 2.0.10 to 2.0.11 require code changes?
The release note describes a constraint change for Laravel 9 support, not a code change, so no code migration is implied for existing 2.0.10 consumers. Blast radius for existing Laravel 8 consumers is low, but the installable set widens and a monorepo update can silently move onto a Laravel 9 dependency graph. Verify provider, config, and response macro behavior because the assessment included no source review.
How do I safely upgrade Larapi in a Laravel monorepo?
Start on a throwaway branch with composer update --dry-run and inspect the composer.lock diff before applying anything. Confirm no other dependency pins illuminate below 9 and that transitive Symfony constraints align with Laravel 9. Run the full suite plus a route smoke pass, stage under realistic load, and keep a 2.0.10 revert branch for one release cycle. Sequence the bump inside your Laravel 8 to 9 application upgrade rather than treating it as a standalone change.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource