Download the PHP package danielemontecchi/laravel-basics without Composer

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

Laravel Basics Package

Latest Version on Packagist Total Downloads GitHub Tests Action Status Quality Gate Status Documentation

A zero-setup package to bootstrap your Laravel projects with a collection of sensible defaults, strict mode helpers, developer protections, and performance tooling. Inspired by nunomaduro/essentials.

Installation

The package auto-registers via Laravel's service provider discovery.


Configuration

Publish the config file:

This will create config/laravel-basics.php, where each feature can be individually enabled or disabled.


🛠 Full Setup: Development Tools, Code Style and Git Hooks

Run the following command to interactively install and configure useful development tools:

This command will offer to install and configure the following:

You can safely rerun this command. It will never overwrite files without asking for confirmation.


Available Features

✅ AutomaticallyEagerLoadRelationships

Enables automatic eager loading of "touched" relationships in Laravel 10.37+. Avoids N+1 problems for $touches relationships.

✅ DefaultPasswordRules

Applies stricter password rules in production (min 12 chars, uncompromised). No rules enforced in dev/test environments.

✅ FakeSleep

Mocks Sleep::for(...) in unit tests, avoiding real delays during test execution.

✅ ForceHttpsScheme

Forces all generated URLs to use HTTPS — useful behind proxies and CDNs.

✅ ImmutableDates

Forces Laravel to use CarbonImmutable by default for all date attributes.

✅ LogSlowQueries

Logs database queries exceeding a threshold (default: 100ms). Useful for performance auditing.

✅ PreventAccessingMissingAttributes

Throws an exception if you try to access a model attribute that doesn't exist.

✅ PreventLazyLoading

Throws an exception for lazy-loaded relationships in non-production environments.

✅ PreventSilentlyDiscardingAttributes

Throws an exception if unknown attributes are passed to a model via fill() or create().

✅ PreventStrayHttpRequests

Prevents real HTTP requests from leaking into your test suite if not faked with Http::fake().

✅ ProhibitDestructiveCommands

Prevents dangerous Artisan commands like migrate:fresh, db:wipe, etc. in production.

✅ SchemaDefaultStringLength

Sets a default string length for schemas (default: 191), useful for utf8mb4 support on older MySQL.

✅ SetLocale

Sets PHP and Carbon locale using the current app.locale config value.

✅ ShouldBeStrict

Enables strict mode in Eloquent models in non-production environments. Helps catch unexpected property or relation access.

✅ UnguardModels

Disables Laravel mass-assignment protection. Use only in safe environments.

✅ ViteAggressivePrefetching

Enables chunk prefetching in Vite to improve load performance.


License

Laravel Basics is open-source software licensed under the MIT license. See the LICENSE.md file for full details.


Made with ❤️ by Daniele Montecchi


All versions of laravel-basics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.4
illuminate/support Version ^10.0|^11.0|^12.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 danielemontecchi/laravel-basics contains the following files

Loading the files please wait ....