aagjalpankaj/laravel-package-template

Composer package template for Laravel

Maintainers

Package info

github.com/aagjalpankaj/laravel-package-template

pkg:composer/aagjalpankaj/laravel-package-template

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-03-15 20:11 UTC

This package is auto-updated.

Last update: 2026-03-15 20:11:08 UTC


README

GitHub Stars CI Status Total Downloads Latest Version License

A comprehensive starter template for creating high-quality Laravel packages with modern development tools and best practices.

๐Ÿ“‹ Table of Contents

๐ŸŽฏ Overview

This template provides a solid foundation for developing Laravel packages with industry-standard tools and configurations. It follows Laravel package development best practices and includes everything you need to create, test, and maintain professional-grade packages.

โœจ Features

  • ๐Ÿงช Comprehensive Testing Suite

    • PestPHP for Feature, Unit & Architecture testing
    • Laravel Workbench for integration testing
    • Pre-configured test environments
  • ๐Ÿ”ง Code Quality Tools

    • Laravel Pint for consistent code styling
    • Rector for automated refactoring and upgrades
    • GitHub Actions for continuous integration
  • ๐Ÿ“ฆ Package Development Tools

    • Pre-configured composer.json with optimal settings
    • Service provider boilerplate
    • Configuration and migration publishing
  • ๐Ÿš€ Developer Experience

    • Automated CI/CD workflows
    • Development helper commands
    • Documentation templates

๐Ÿ“‹ Requirements

  • PHP 8.1 or higher
  • Laravel 10.0 or higher
  • Composer 2.0 or higher

๐Ÿš€ Installation

Using GitHub Template

  1. Click the "Use this template" button on the GitHub repository
  2. Create your new repository
  3. Clone your new repository locally

Using Composer

composer create-project aagjalpankaj/laravel-package-template:dev-main your-package-name
cd your-package-name

โšก Quick Start

After creating your package from this template, follow these steps:

1. Customize Package Information

Replace the following placeholders throughout your codebase:

Placeholder Replace With Example
Aagjalpankaj Your vendor namespace YourCompany
LaravelPackageTemplate Your package class name AwesomePackage
laravel-package-template Your package name awesome-package

2. Update Package Configuration

Edit the following files with your package details:

  • composer.json - Package metadata, dependencies, and autoloading
  • config/laravel-package-template.php - Package configuration file
  • src/LaravelPackageTemplateServiceProvider.php - Service provider

Available Commands

Command Description
composer ci Run complete CI suite (tests, code style, static analysis)
composer ci:fix Fix code style and refactor issues automatically
composer test Run the full test suite
composer test:unit Run unit tests only
composer test:feature Run feature tests only
composer test:arch Run architecture tests only
composer pint Fix code style issues
composer rector Apply automated refactoring

Continuous Integration

GitHub Actions automatically run:

  • โœ… Tests across multiple PHP versions
  • โœ… Code style checks
  • โœ… Static analysis
  • โœ… Dependency security scanning