Download the PHP package larastrict/conventions without Composer

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

LaraStrict conventions for your Laravel apps

Enhance the robustness and consistency of your Laravel applications with LaraStrict conventions. This package integrates essential tools like PHPStan, Easy Coding Standard, RectorPHP, and tailored rules to streamline your development process.

This package extends the StrictPHP conventions.

Key Features

This package bundles a selection of powerful tools and configurations to support your development workflow:

Prerequisites

Before installation, ensure your environment meets these requirements:

Only latest major version of this package is maintained.

Version PHPUnit PHP Laravel
1.x 10/11 8.2+ 10+
0.x 9 8.1+ 9

Installation

To integrate LaraStrict Conventions into your project, run the following command in your terminal:

This installs the package as a development dependency. During installation, you'll be prompted to confirm the installation of the plugin:

Do you trust "phpstan/extension-installer" to execute code and wish to enable it now? (yes/no) [y]:

Type y to use all provided extensions.

Getting Started

After installation, you can tailor the provided configurations to meet your project's requirements.

Setting Up Easy Coding Standard

To use Easy Coding Standard, create or update an ecs.php file at your project's root with the following setup:

Check extension-ecs.php to see what is included:

Configuring RectorPHP

For integrating RectorPHP, add or update a rector.php file in your project's root with the following configuration:

Check extension-rector.php to see what is included:

Integrating PHPStan

Ensure you use the PHPStan extension installer to install the required extensions.

PHPStan Configuration

Your phpstan should look like this:

Rules

The package includes the following rules:

UsableInContainerRule

Customization does not work yet. Currently disabled

The package includes rules for ensuring DI classes/contracts are used appropriately:

You can customize these settings as needed. Example configuration:

Default settings can be found in ./extension.neon file

Acknowledgement

This project owes its existence to the generous support of several other impactful projects:

Explore more of our open-source initiatives:

License

Open-source software licensed under the MIT License. Feel free to use and modify it according to your needs.


All versions of conventions with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
strictphp/conventions Version ^v1.0.0
larastan/larastan Version ^v2.9.2
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 larastrict/conventions contains the following files

Loading the files please wait ....