Download the PHP package holdmyglass/zapcraft without Composer

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

ZapCraft Laravel Package

After spending a considerable amount of time in development, I noticed a recurring pattern—I was performing the same tasks repeatedly. Every time I created a new model, I found myself generating similar files with identical content. In an effort to simplify this repetitive process and streamline my workflow, I decided to create the ZapCraft Laravel package.

ZapCraft is designed with my favorite coding structure in mind, offering a solution to automate the creation of essential files and components for new models. Built on top of the trusted nwidart/laravel-modules package, ZapCraft introduces functionalities to effortlessly generate models, migrations, controllers, repositories, interfaces, DTOs, services, requests, resources, and routes for any entity in your Laravel project.

Installation

To install ZapCraft, use the following Composer command:

Getting Started

ZapCraft simplifies the process of creating and organizing components in your Laravel application. This package is dependent on nwidart/laravel-modules package. If you have already installed this package then it's fine. If you have not installed it, then the zapcraft package will automatically install the laravel-modules package.

Autoloading

By default, module classes aren't loaded automatically. To autoload them using psr-4, add the following line to the end of the root composer.json file under the autoload section:

Now run composer dump-autoload in the root of your laravel app.

Commands

The first command will generate all the necessary files and classes. For the rest, it should be clear what it can generate looking at the command name.

After we generate everything, we need to bind the interfaces with repository. So lets say we generate everything with the following command:

sail php artisan zapcraft:all Product --module=Sale

This is create all the files for Product entity inside Sale module. This will create ReadProductRepositoryInterface, WriteProductRepositoryInterface and ProductRepository along with many other files. We need to bind these two interfaces with repository. Open Modules/Sale/app/Providers/SaleServiceProvider and paste the following inside public function register() function:

P.S. Don't forget to import these class at top using use statement.

Customization

ZapCraft is designed to be flexible and customizable. You can modify the generated files, tweak configurations, and adapt the code to fit your specific needs.

Features

ZapCraft provides the following features:

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request on the Github Repository.

License

ZapCraft is open-sourced software licensed under the MIT License .

Support

If you encounter any issues or have questions, feel free to reach out to us through Github Issues.

Happy coding with ZapCraft!


All versions of zapcraft with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
nwidart/laravel-modules Version ^10.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 holdmyglass/zapcraft contains the following files

Loading the files please wait ....