PHPackages                             aagjalpankaj/laravel-package-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aagjalpankaj/laravel-package-template

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aagjalpankaj/laravel-package-template
=====================================

Composer package template for Laravel

11PHPCI passing

Since Mar 15Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/aagjalpankaj/laravel-package-template)[ Packagist](https://packagist.org/packages/aagjalpankaj/laravel-package-template)[ RSS](/packages/aagjalpankaj-laravel-package-template/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Package Template
========================

[](#laravel-package-template)

 [ ![GitHub Stars](https://camo.githubusercontent.com/527f4390b683911eed803710c962a71f816eb87a4031809958b7b3f3aae4dcfa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6161676a616c70616e6b616a2f6c61726176656c2d7061636b6167652d74656d706c6174653f7374796c653d666f722d7468652d6261646765) ](https://github.com/aagjalpankaj/laravel-package-template) [ ![CI Status](https://camo.githubusercontent.com/a21874beb7ce7252fb991dea3616f56fe41d98c4c555473271dfdceed7a7e9bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6161676a616c70616e6b616a2f6c61726176656c2d7061636b6167652d74656d706c6174652f63692e796d6c3f6272616e63683d6d61696e267374796c653d666f722d7468652d6261646765266c6162656c3d4349) ](https://github.com/aagjalpankaj/laravel-package-template/actions/workflows/ci.yml) [ ![Total Downloads](https://camo.githubusercontent.com/98395f90114348e61ba625b8e3fd4ee2f037e1a999292c3486063de3c2a716e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6161676a616c70616e6b616a2f6c61726176656c2d7061636b6167652d74656d706c6174653f7374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/aagjalpankaj/laravel-package-template) [ ![Latest Version](https://camo.githubusercontent.com/80517872fe625ff233b0df0bc7419beb09a6092b22ec0a7568adc69e0a736999/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6161676a616c70616e6b616a2f6c61726176656c2d7061636b6167652d74656d706c6174653f7374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/aagjalpankaj/laravel-package-template) [ ![License](https://camo.githubusercontent.com/5cdf8a01d8c0be72a5390ec4c47653beb97b9162ef58eb0ca02c569a44dd7dc6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6161676a616c70616e6b616a2f6c61726176656c2d7061636b6167652d74656d706c6174653f7374796c653d666f722d7468652d6261646765) ](https://github.com/aagjalpankaj/laravel-package-template/blob/main/LICENSE)

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

---

📋 Table of Contents
-------------------

[](#-table-of-contents)

- [Overview](#overview)
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Development Workflow](#development-workflow)
- [Testing](#testing)
- [Code Quality](#code-quality)
- [Contributing](#contributing)
- [Changelog](#changelog)
- [License](#license)
- [Support](#support)

🎯 Overview
----------

[](#-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
----------

[](#-features)

- **🧪 Comprehensive Testing Suite**

    - PestPHP for Feature, Unit &amp; 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
--------------

[](#-requirements)

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

🚀 Installation
--------------

[](#-installation)

### Using GitHub Template

[](#using-github-template)

1. Click the "Use this template" button on the [GitHub repository](https://github.com/aagjalpankaj/laravel-package-template)
2. Create your new repository
3. Clone your new repository locally

### Using Composer

[](#using-composer)

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

⚡ Quick Start
-------------

[](#-quick-start)

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

### 1. Customize Package Information

[](#1-customize-package-information)

Replace the following placeholders throughout your codebase:

PlaceholderReplace WithExample`Aagjalpankaj`Your vendor namespace`YourCompany``LaravelPackageTemplate`Your package class name`AwesomePackage``laravel-package-template`Your package name`awesome-package`### 2. Update Package Configuration

[](#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

[](#available-commands)

CommandDescription`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

[](#continuous-integration)

GitHub Actions automatically run:

- ✅ Tests across multiple PHP versions
- ✅ Code style checks
- ✅ Static analysis
- ✅ Dependency security scanning

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0349c7c955142c33903744bb5a23a3e5aa2ba0238dc7b972c47b1fe82f2077de?d=identicon)[aagjalpankaj](/maintainers/aagjalpankaj)

---

Top Contributors

[![aagjalpankaj](https://avatars.githubusercontent.com/u/15609300?v=4)](https://github.com/aagjalpankaj "aagjalpankaj (6 commits)")

---

Tags

composerlaravelpackagetemplate

### Embed Badge

![Health badge](/badges/aagjalpankaj-laravel-package-template/health.svg)

```
[![Health](https://phpackages.com/badges/aagjalpankaj-laravel-package-template/health.svg)](https://phpackages.com/packages/aagjalpankaj-laravel-package-template)
```

###  Alternatives

[funct/funct

A PHP library with commonly used code blocks

605141.2k75](/packages/funct-funct)[imanghafoori/laravel-terminator

A minimal yet powerful package to give you opportunity to refactor your controllers.

25353.0k](/packages/imanghafoori-laravel-terminator)[hanson/chinese

简繁体转换.

2317.0k](/packages/hanson-chinese)[maisondunet/module-gtm-cookie-consent

A simple cookie consent module for magento. It relies on new GTM consent functionality.

134.5k](/packages/maisondunet-module-gtm-cookie-consent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
