Download the PHP package pwweb/artomator without Composer

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

Artomator

Latest Stable Version Total Downloads License Scrutinizer code quality (GitHub/Bitbucket) StyleCI Status

Artomator: Custom commands making life easier. Extending the package InfyOmLabs/laravel-generator package to include GraphQL and extend the document blocks.

Installation

Via Composer run the following:

To simplify the installation the following command can be run:

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 or CoreUI

2. Do you want to install Laravel Jetstea (Inertia & Vue)? This will install the Laravel Jetstream if you choose yes. It will use the Inertia stack.

2a. Do you want to support Laravel Jetstream Teams? If you want to support the Teams 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)

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

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:

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

Recommended: If you have a fresh new Laravel application and want a basic admin panel layout then you should consider setting up Laravel Jetstream. You can find installation instructions here.

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:

You will need to add to the appropriate package to your composer:

or

It's recommended that you change this config setting now, before progressing, as the next commands will use whatever template is defined when generating the view files.

Finally, you should run the following to publish the stub files used by Artomator so you can configure these to your setup:

InfyoLabs documentation

As this is an extension to the InfyOmLabs/laravel-generator package, it's strongly recommended that you make yourself familiar with their documentation. When you are reviewing these, keep in mind that all commands that start: $ php artisan infyom should be replaced with $php artisan artomator if you want the additional benefits of this package to be utilised.

Usage

VueJS Support

Running the *scaffold based commands (see commands) you can use the following additional flag to generate the views using the VueJS templates instead.

This will follow the same additional switches as the viewsGenerator i.e. --skip=views will skip the generation of the VueJS views too.

Commands

As this is an extension of the InfyOmLabs/laravel-generator package the documentation for the base package can be found here.

All commands in the base package have been "extended" so there is an artomator version of each. Refer to the original documentation for instructions on how to use these.

In addition to the base package commands there are the following:

For the GraphQL commands you can also provide an additional switch --gqlName=AlternativeGraphqlName which will allow you to customise the name used by the GraphQL engine. If this is omitted the model name will be used instead.

artomator.publish:templates

To alter the stub files provided with the package, you can publish them from the command line

This command will run the InfyOmLabs equivalent publish command and then overwrite with those within the Artomator package. Therefore you will be asked to confirm the overwrite of the files, type yes to confirm.

This will put the stub files into the .\resources\infyom\infyom-generator-templates folder. These can be edited and the when the commands are run, these templates will be used.

artomator.graphql_scaffold <MODEL_NAME>

This function follows the same principal as the php artisan infyom:api_scaffold <MODEL_NAME> function but generates the GraphQL files instead of the API files along with the laravel scaffold files.

artomator:graphql <MODEL_NAME>

This function follows the same principal as the php artisan infyom:api <MODEL_NAME> function but generates the GraphQL files instead of the API files.

artomator.graphql:mutations <MODEL_NAME>

This function generates the GraphQL Mutations files only.

artomator.graphql:query <MODEL_NAME>

This function generates the GraphQL Query file only.

artomator.graphql:type <MODEL_NAME>

This function generates the GraphQL Type file only.

Custom Routes

If you want to define custom routes that are persisted and re-generated when new models are added there is now a custom property that you can add to the json file web.json:

Ensure this is inline with the group property.

The above will result in a route being added as follows:

If you leave the function blank it will remove the @printer part from the callback.

Routes General

Below is an example output for the web.json file. You are free to add the "fallback" option and change the "only" "controller" and "as" options for a resource controller:

!! WARNING !! These additional fields are not compatible with prior versions. Please manually update the JSON file with the missing fields.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

Copyright © pw-websolutions.com. Please see the license file for more information.


All versions of artomator with dependencies

PHP Build Version
Package Version
Requires doctrine/dbal Version ~2.3
nuwave/lighthouse Version ^4.0 || ^5.0
mll-lab/laravel-graphql-playground Version ^2.0
php Version >=7.4 || ~8.0
laravel/framework Version ^8.0 || ^9.0
laracasts/flash Version ^3.2.1
laravelcollective/html Version ^6.3
infyomlabs/laravel-generator Version ~3.0 || ~4.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 pwweb/artomator contains the following files

Loading the files please wait ....