PHPackages                             laravelangular/generators - 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. laravelangular/generators

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

laravelangular/generators
=========================

Angular generators for Artisan

3.0.0(7y ago)9069.5k↓25%23[3 PRs](https://github.com/jadjoubran/laravel-ng-artisan-generators/pulls)1MITPHP

Since Nov 11Pushed 6y ago13 watchersCompare

[ Source](https://github.com/jadjoubran/laravel-ng-artisan-generators)[ Packagist](https://packagist.org/packages/laravelangular/generators)[ RSS](/packages/laravelangular-generators/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (38)Used By (1)

Laravel AngularJS Artisan Generators
====================================

[](#laravel-angularjs-artisan-generators)

AngularJS generators for Artisan. Originally created at [laravel5-angular-material-starter](https://github.com/jadjoubran/laravel5-angular-material-starter).

Installation
============

[](#installation)

If you're using the starter project, then it's already pre-installed.

```
composer require laravelangular/generators

//and then add the provider in config/app.php
LaravelAngular\Generators\LaravelServiceProvider::class,

php artisan vendor:publish

```

Usage
=====

[](#usage)

```
php artisan ng:page name       #New page inside angular/app/pages/
php artisan ng:component name  #New component inside angular/app/components/
php artisan ng:directive name  #New directive inside angular/directives/
php artisan ng:config name     #New config inside angular/config/
php artisan ng:dialog name     #New custom dialog inside angular/dialogs/
php artisan ng:filter name     #New filter inside angular/filters/
php artisan ng:service name    #New service inside angular/services/
```

These commands will create new directories and files for AngularJS front-end in new ES6 syntax. If not present, commands will create index files (i.e.: `index.components.js`) and, if enabled, new created classes will be imported.

Configurations are editable in `config\generators.php`. See below for details.

Configuration
=============

[](#configuration)

- **source**: name of directories. They make a path to new created files
    - **root**: name of the directory on where all created files and folders will be put.
    - Other entries indicate directories where files will be put. I.e running `php artisan ng:component name` will be created three new files for component `name` with `root/components/name/` path. Default is `angular/app/components/name/`
- **suffix**: name and extension appended to file name. I.e.: running `php artisan ng:directive name` will be created a file named `name.directive.js`.
    - **stylesheet**: extension for stylesheets. NOTE: Stylesheets are created for both pages and components
- **tests**
    - **enable**: whether to enable or disable creation of test files
    - **source**: same as `source`, but for test files
- **misc.auto\_import**: enable or disable automatic import in index files.
- **angular\_modules**: configuration for angular root module and submodules. If index files are created before or manually, these settings will help recognize angular modules for automatic import. If index file is created on first command run, these settings will create angular module for you.
    - **root**: angular root module.
    - **standalone**: if a module is defined as standalone (i.e.: `angular.module('mymodule', [])`) or is part of a root module (`angular.module('mymodule')`). If set to false, `use_prefix`, `prefix` and `suffix` will be ignored and root module name will be used.
    - **prefix** and **suffix**: name of module of the type `prefix.suffix`; i.e.: `app.components`.
    - **use\_prefix**: whether to use prefix for module name

Documentation
=============

[](#documentation)

[View Angular Generators documentation](https://laravel-angular.readme.io/docs/generators-intro)

Contributors
============

[](#contributors)

Originally created at [laravel5-angular-material-starter](https://github.com/jadjoubran/laravel5-angular-material-starter) then moved to a separate package by [@m33ch](https://github.com/m33ch)

Notes
=====

[](#notes)

- Do not append the word `service`, it will be automatically added for you.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 72% 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.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~179 days

Total

36

Last Release

2828d ago

Major Versions

0.13.2 → 1.4.02016-01-05

1.6.1 → 2.0.02016-01-23

2.7.5 → 3.0.02018-08-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e924cd1f8e07789f3ef12e75fa813b294dd171ea9437b7a4c991f74db2c3360?d=identicon)[jadjoubran](/maintainers/jadjoubran)

---

Top Contributors

[![jadjoubran](https://avatars.githubusercontent.com/u/2265232?v=4)](https://github.com/jadjoubran "jadjoubran (85 commits)")[![jadsalhani](https://avatars.githubusercontent.com/u/6623311?v=4)](https://github.com/jadsalhani "jadsalhani (12 commits)")[![m33ch](https://avatars.githubusercontent.com/u/1915008?v=4)](https://github.com/m33ch "m33ch (10 commits)")[![flick36](https://avatars.githubusercontent.com/u/8582529?v=4)](https://github.com/flick36 "flick36 (4 commits)")[![vikpe](https://avatars.githubusercontent.com/u/1616817?v=4)](https://github.com/vikpe "vikpe (2 commits)")[![yazfield](https://avatars.githubusercontent.com/u/9166171?v=4)](https://github.com/yazfield "yazfield (1 commits)")[![hackur](https://avatars.githubusercontent.com/u/161835?v=4)](https://github.com/hackur "hackur (1 commits)")[![james-coder](https://avatars.githubusercontent.com/u/13262021?v=4)](https://github.com/james-coder "james-coder (1 commits)")[![MatteoMeil](https://avatars.githubusercontent.com/u/34041381?v=4)](https://github.com/MatteoMeil "MatteoMeil (1 commits)")[![ekoeryanto](https://avatars.githubusercontent.com/u/36023898?v=4)](https://github.com/ekoeryanto "ekoeryanto (1 commits)")

---

Tags

angularjsartisanlaravel

### Embed Badge

![Health badge](/badges/laravelangular-generators/health.svg)

```
[![Health](https://phpackages.com/badges/laravelangular-generators/health.svg)](https://phpackages.com/packages/laravelangular-generators)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[yajra/laravel-datatables-buttons

Laravel DataTables Buttons Plugin.

2629.1M54](/packages/yajra-laravel-datatables-buttons)[elfsundae/laravel-hashid

A simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.

415246.3k2](/packages/elfsundae-laravel-hashid)[consoletvs/charts

The laravel charting package

863.6M25](/packages/consoletvs-charts)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)

PHPackages © 2026

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