Download the PHP package seangly/laravel-csrm without Composer

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

Laravel CSRM Package - Setup Guide

Overview

The Laravel CSRM Package is a powerful generator that scaffolds a complete Controller-Service-Repository-Model design pattern in your Laravel application. It follows SOLID principles and best practices for enterprise-level Laravel development.

Requirements

Installation

Step 1: Install the Package via Composer

Option A: From Packagist (Production)

Option B: From Local Path (Local Development)

If you have the package code locally and want to test it:

  1. Add the path repository to your composer.json:

  2. Then run:

Note: Don't use composer require when a path repository is configured. Instead, manually add the package to require section and run composer install or composer update.

The package will be automatically discovered and registered through Laravel's auto-discovery feature.

Step 2: Verify Installation

Check that the CSRM commands are available:

You should see:

Usage

Initial Setup

Before creating modules, set up the base CSRM structure:

This command generates:

No example module is generated by default. Use php artisan csrm:make {Name} to create actual modules.

Options

The --force flag overwrites existing files without prompting.

Generate New Modules

After initial setup, create new CSRM modules:

Example

This generates the CSRM module for a Post:

Controller Mode Options

You can generate controller variants:

Selective Generation

Generate only specific components:

Available Options

Current Generator Status

Currently implemented:

Overwrite Existing Files

Directory Structure

After running csrm:install, your application structure will be:

Design Pattern Explanation

Repository Layer (Data Access)

Handles data access, including queries and persistence operations.

BaseRepositoryInterface methods:

Service Layer (Business Logic & Actions)

Handles business logic and orchestrates action flows. It calls repository methods for persistence.

Architecture Summary

Configuration

Publishing Assets

To customize stubs, publish them to your project:

Customized stubs will be placed in stubs/csrm/ and will be used for future generation.

Repository Binding

The package automatically binds repositories in AppServiceProvider:

You can inject the interface in your service or controller:

Next Steps

1. Run Database Migrations

After installation or creating new modules:

2. Add Routes Manually

The package does not auto-generate route files for new modules. Add routes manually as needed, for example:

3. Customize Generated Code

The generated files are starting points. Customize them for your specific business logic:

Common Workflows

Create a Complete Module

Add Additional Functionality

After generating a module, enhance the service layer:

Use Repository Interface in Multiple Services

Troubleshooting

Commands Not Showing

Verify the package is installed:

Clear cached services:

Regenerate autoloaders:

Migration Errors

Ensure your database is properly configured in .env:

Class Not Found Errors

Clear application cache:

Contributing & Support

For issues, feature requests, or contributions, visit the GitHub repository:

https://github.com/Chhounseangly/laravel-csrm

License

This package is licensed under the MIT license. See the LICENSE file for details.


Quick Reference

Installation

Common Commands


All versions of laravel-csrm with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version >=10.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 seangly/laravel-csrm contains the following files

Loading the files please wait ...