Download the PHP package l0n3ly/laravel-repository-with-service without Composer

On this page you can find all versions of the php package l0n3ly/laravel-repository-with-service. 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 laravel-repository-with-service

Laravel Repository With Service

Latest Version Total Downloads License

A Laravel package that scaffolds the repository and service pattern โ€” generates repository and service classes with interfaces, and automatically binds them to their implementations via the container.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the latest 1.x release:

Publish the config file:

Quick Start

Fastest Start: Generate Everything at Once

Scaffold a complete feature with one command:

This creates everything โ€” model, migration, factory, seeder, controller, repository, and service.

Generate a Repository

Generate a Service

Generate from a Model

Use in Your Code

Services and repositories are automatically bound to the container:

๐Ÿ“– Documentation

Comprehensive documentation is available:

Document Purpose
Full Guide Installation, quick start, and all commands
API Reference Core interfaces and configuration
Troubleshooting Common issues and solutions
Examples Real-world usage examples
Contributing Contribution guidelines
Laravel Boost Integration Using with AI-powered Boost workflows

๐Ÿค– Laravel Boost Support

This package is fully integrated with Laravel Boost and provides three AI skills to enhance your development workflow:

Three Essential Skills

These skills are located in resources/boost/skills/ and are discovered by running:

Select the desired skills during installation, and they'll be available to your AI agent.

AI-Powered Workflows

Get intelligent suggestions for:

Example Boost Usage

Getting Started with Boost

  1. Install Laravel Boost in your Laravel project
  2. Run php artisan boost:install --discover
  3. Select this package's skills when prompted
  4. Ask your AI agent to generate repositories, services, or help with architecture

See BOOST.md for detailed integration guide.

๐ŸŽฏ Common Patterns

Blog Application

E-Commerce

SaaS with Multi-Tenancy

See EXAMPLES.md for complete real-world examples.

๐Ÿ”ง Configuration

Edit config/service-repository.php to customize:

Override Binding Example

Decorate or replace a bound implementation in your service provider:

Service API Template

The --api flag generates services with response helpers:

๐Ÿš€ Performance Tips

  1. Use Caching - Wrap repositories with caching decorators
  2. Eager Loading - Use Eloquent's with() in repositories
  3. Singleton Services - For stateless services, bind as singleton
  4. Optimize Queries - Focus repository methods on specific queries

๐Ÿงช Testing

Mock repositories in tests:

๐Ÿ“š Real-World Examples

Check EXAMPLES.md for complete implementations:

๐Ÿค Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

๐Ÿ“„ License

The MIT License (MIT). Please see LICENSE.md for more information.

Support

Project guide:

Changelog

See CHANGELOG for release notes.

License

MIT. See LICENSE.md.


All versions of laravel-repository-with-service with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^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 l0n3ly/laravel-repository-with-service contains the following files

Loading the files please wait ...