Download the PHP package reedware/laravel-modern-factories without Composer

On this page you can find all versions of the php package reedware/laravel-modern-factories. 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 laravel-modern-factories

Laravel Modern Factories

This package brings modern Laravel Factories (circa Laravel 8) to older versions of Laravel, with the aim of helping legacy applications update to modern Laravel.

Laravel Version PHP Version Build

Usage of Laravel 7 and older is waning, but it ain't zero. Trying to upgrade? Maybe this package can help.

Table of Contents

Introduction

If you're still using Laravel 7 or older, you already know that it's high time to upgrade, but let's be real, there's probably some roadblocks in the way. One of the roadblocks I've been faced having confidence that I don't break anything when upgrading. There are a few tools to combat this:

This package is meant to aid your investment in automated testing via PHPUnit. When you're behind on your version of Laravel, you've got technical debt. Usually, upgrading your version of Laravel is a common blocker for multiple avenues of addressing your technical debt. That said, if you're paying down your technical debt by writing automated tests using legacy Laravel Factories, there's effectively a tax associated with every payment, as once you get to Laravel 8, you'll be pressured to upgrade to modern Laravel Factories. You can use laravel/legacy-factories to keep moving forward with your legacy factories, but let's be real, that's not what you want either.

Installation

Install this package using composer:

This package doesn't use any facades or service providers.

Versioning

This package targets the feature set of Laravel 8.x Eloquent Factories. If you're on Laravel 8 or greater, don't use this package; just use the native Eloquent Factories.

The following Laravel and PHP versions are supported:

Package Laravel PHP
1.x 5.1 - 7.x 5.5 - 7.4
2.x 6.x - 7.x 8.0 - 8.4

Usage

Refer to the Laravel 8.x Documentation on Eloquent Factories. This package autoloads into the Illuminate\Database\Eloquent\Factories namespace (which isn't used prior to Laravel 8), so the documentation can be followed verbatim.

Changes for 5.6 or Older

The new and for keywords are not allowed as method names. You can use newFactory and forModel instead. Newer versions of PHP (7.0 or greater) can use the new and for methods as-is.


All versions of laravel-modern-factories with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/database Version ^6.0|^7.0
illuminate/support Version ^6.0|^7.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 reedware/laravel-modern-factories contains the following files

Loading the files please wait ...