Download the PHP package kafkiansky/better-laravel without Composer

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

Better Laravel

test static analysis Total Downloads

Contents

Installation

Motivation

Laravel is a framework focused on ease of development. However, while providing many simple tools to quickly implement production ready solutions, it also adds more options to allow bugs. This package provides a set of plugins for the Psalm static analyzer, which covers many known issues.

Hooks

DontExtendApplicationEventServiceProvider

How often have you made the mistake of inheriting the right EventServiceProvider? For example, you have a service provider A in which you register subscribers or listeners, and then inherit it in service provider B in which you register only listeners or only subscribers. So you risk duplicating subscribers or listeners because Laravel will register them twice in the dispatcher.

The DontExtendApplicationEventServiceProvider hook will detect such service providers and prevent them from using inheritance from project event service providers.

DontUseEnvOutsideConfiguration

You have probably heard that the env function will always return null when caching a configuration. This is because Laravel does not load environment variables if it sees a cached configuration file in bootstrap/cache/config.php. This hook works quite simply: if it sees calls to the env function outside the configuration files, it shows an error.

⚠️ Important restriction: all configuration files must be stored in the config folder.

ConfigurationOptionMustExists

Laravel allows you to work conveniently with configuration through dot notation. This is both convenient because it allows you to have unlimited nesting of the configuration, and inconvenient because no one validates such a configuration, and you can get the name wrong. This hook parses all the configuration files of your project and checks that the options you are accessing really exist.

⚠️ Important restriction: all configurations must be stored in the config folder and the file names must match the namespace (root) of the configuration.

For example, you have the following config in a file called api.php:

When accessing the api.http.ur configuration, you will see an error from Psalm that such configuration option is missing.

Testing

License

The MIT License (MIT). See License File for more information.


All versions of better-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-simplexml Version *
vimeo/psalm Version ^5.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 kafkiansky/better-laravel contains the following files

Loading the files please wait ....