PHPackages                             pwweb/artomator - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. pwweb/artomator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

pwweb/artomator
===============

PWWEB Artomator

v1.1.0(4y ago)54291MITPHPPHP &gt;=7.4 || ~8.0CI failing

Since Jun 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pwweb/artomator)[ Packagist](https://packagist.org/packages/pwweb/artomator)[ Docs](https://github.com/pwweb/artomator)[ RSS](/packages/pwweb-artomator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (35)Used By (0)

Artomator
=========

[](#artomator)

[![](https://camo.githubusercontent.com/60bfa0ace0d0e476421f6270dd114a293a15d531c2c05665fcc008fcc1dc27e4/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4172746f6d61746f722e706e673f7468656d653d6461726b267061636b6167654e616d653d70777765622532466172746f6d61746f72267061747465726e3d6d6f727068696e674469616d6f6e6473267374796c653d7374796c655f31266465736372697074696f6e3d437573746f6d2b636f6d6d616e64732b746f2b6d616b652b6c6966652b65617379266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d666173742d666f7277617264)](https://camo.githubusercontent.com/60bfa0ace0d0e476421f6270dd114a293a15d531c2c05665fcc008fcc1dc27e4/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4172746f6d61746f722e706e673f7468656d653d6461726b267061636b6167654e616d653d70777765622532466172746f6d61746f72267061747465726e3d6d6f727068696e674469616d6f6e6473267374796c653d7374796c655f31266465736372697074696f6e3d437573746f6d2b636f6d6d616e64732b746f2b6d616b652b6c6966652b65617379266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d666173742d666f7277617264)

[![Latest Stable Version](https://camo.githubusercontent.com/844c0c75afb6f8d16baf2245b9db92a35d3a384b71ae64c550664da511eb6360/68747470733a2f2f706f7365722e707567782e6f72672f70777765622f6172746f6d61746f722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/pwweb/artomator)[![Total Downloads](https://camo.githubusercontent.com/19a2988ca6ff18ae787949cc297c3d9ed5b0bd19b0a363ea8c46038c79b39f87/68747470733a2f2f706f7365722e707567782e6f72672f70777765622f6172746f6d61746f722f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/pwweb/artomator)[![License](https://camo.githubusercontent.com/3447ca39983c251d2d2268642e6359767eaf83324bd09b6b443745c2c8ed8533/68747470733a2f2f706f7365722e707567782e6f72672f70777765622f6172746f6d61746f722f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/pwweb/artomator)[![Scrutinizer code quality (GitHub/Bitbucket)](https://camo.githubusercontent.com/9ee4cf183fdb70749abe17d1919ca9a44129f935f379e1ef81fac0625547ca4a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f70777765622f6172746f6d61746f723f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/pwweb/artomator/)[![StyleCI Status](https://camo.githubusercontent.com/252a4fd90a6e562c84639dd7e04870935f8a2a4609bd7f676a4d9c440ce2bc62/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303931303934372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/190910947)

**Artomator**: Custom commands making life easier. Extending the package [`InfyOmLabs/laravel-generator`](https://github.com/InfyOmLabs/laravel-generator) package to include GraphQL and extend the document blocks.

Installation
------------

[](#installation)

Via Composer run the following:

```
$ composer require pwweb/artomator --dev
```

To simplify the installation the following command can be run:

```
$ php artisan artomator:install
```

This will guide you through the various steps to set things up. The questions you'll be asked:

**1. Choose your templating package: \[CoreUI / AdminLTE\]?**This will install the laravel-generator packages for the templates based on your choice. See [AdminLTE](https://www.infyom.com/open-source/laravelgenerator/docs/8.0/adminlte-templates) or [CoreUI](https://www.infyom.com/open-source/laravelgenerator/docs/8.0/coreui-templates)

**2. Do you want to install Laravel Jetstea (Inertia &amp; Vue)?**This will install the [Laravel Jetstream](https://jetstream.laravel.com/2.x/introduction.html) if you choose yes. It will use the [Inertia](https://inertiajs.com/) stack.

**2a. Do you want to support Laravel Jetstream Teams?**If you want to support the [Teams](https://jetstream.laravel.com/2.x/features/teams.html) feature of Laravel Jetstream answer `YES` and the installation will include the support. Otherwise the Teams feature will not be installed.

**3. Do you want to publish the stub files?**If you want to be able to override the template files to suit your requirements, then answer `YES` and these will be published to the resources folder. If you want to do this after the installation you can always run `php artisan artomator.publish:templates`.

### Alternate Installation (MANUAL)

[](#alternate-installation-manual)

Alternatively you can do the following, which is what the `install` command does:

```
$ php artisan vendor:publish --tag=artomator
$ php artisan vendor:publish --provider="InfyOm\Generator\InfyOmGeneratorServiceProvider"
$ php artisan vendor:publish --tag=lighthouse-schema
$ php artisan vendor:publish --tag=lighthouse-config
$ php artisan artomator:publish
```

This will publish the config files for the necesary packages and the `graphql.schema` file needed to run the GraphQL server and the following files:

```
├── app
│   ├── Http
│   |   └── Controllers
│   │       └── AppBaseController.php
│   └── Repositories
|       └── BaseRepository.php
└── Tests
    ├── ApiTestTrait.php
    ├── Traits
    ├── APIs
    └── Repositories
```

Add the following aliases to the aliases array in `config/app.php`:

```
'Form'  => Collective\Html\FormFacade::class,
'Html'  => Collective\Html\HtmlFacade::class,
'Flash' => Laracasts\Flash\Flash::class,
```

**Recommended:** If you have a fresh new Laravel application and want a basic admin panel layout then you should consider setting up [Laravel Jetstream](https://jetstream.laravel.com/2.x/introduction.html). You can find installation instructions [here](https://jetstream.laravel.com/2.x/installation.html).

By default `infyomlabs\laravel-generator` uses `infyomlabs\adminlte-templates` templates. If you would prefer to use the `coreui` templates, then update the `Templates` section of the config file: `config/inyom/laravel-generator.php` as follows:

```
