Download the PHP package artisanpack-ui/code-style-pint without Composer

On this page you can find all versions of the php package artisanpack-ui/code-style-pint. 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 code-style-pint

ArtisanPack UI Code Style Pint

Laravel Pint preset for ArtisanPack UI code standards. This package provides a pre-configured pint.json file that enforces coding standards matching the artisanpack-ui/code-style PHPCS package.

Installation

Install the package via Composer:

Usage

For Laravel Applications

Publish the pint.json configuration file to your project root:

Use --force to overwrite an existing pint.json:

Alternatively, use Laravel's standard publish command:

For Laravel Packages

When developing a Laravel package, use PintConfigBuilder directly since php artisan isn't available:

Standard Pint Configuration:

Run it once to generate your config:

Or copy the stub directly:

WordPress-Style Spacing (PHP-CS-Fixer):

For WordPress-style spacing in packages, copy the PHP-CS-Fixer configuration stub:

Then install PHP-CS-Fixer:

WordPress-Style Spacing (Laravel Applications)

If you need WordPress-style spacing (spaces inside parentheses and brackets) in a Laravel application, use the --wordpress flag:

This will create .php-cs-fixer.dist.php with custom fixers that enforce:

Note: WordPress spacing requires PHP-CS-Fixer instead of Pint:

Running Pint

Once the Pint configuration is in place, run Pint to format your code:

To test without making changes:

Running PHP-CS-Fixer (WordPress Spacing)

If you're using WordPress-style spacing, run PHP-CS-Fixer instead:

To test without making changes:

Programmatic Configuration

For advanced use cases, you can build configurations programmatically:

See docs/customization.md for detailed customization options.

Rules Included

This preset enforces the following code style rules:

For WordPress-style spacing (spaces inside parentheses and brackets), see the WordPress-Style Spacing section.

Complementary PHPCS Usage

Some rules cannot be enforced by Pint (security checks, naming conventions, line length). For complete code style enforcement, use both packages:

Recommended Workflow

  1. Run Pint first to auto-fix formatting:

  2. Run PHPCS to catch remaining issues:

Laravel Boost AI Guidelines

This package includes AI guidelines for Laravel Boost, which will automatically be available when users run php artisan boost:install.

Overriding Default Pint Guidelines

To have AI assistants use ArtisanPack UI standards instead of Laravel's default Pint guidelines, publish the Boost override:

This creates .ai/guidelines/laravel/pint.blade.php, which overrides Boost's default Pint guidelines with ArtisanPack UI specific guidance.

Documentation

Contributing

As an open source project, this package is open to contributions from anyone. Please read through the contributing guidelines to learn more about how you can contribute to this project.

License

This package is open-sourced software licensed under the GPL-3.0-or-later license.


All versions of code-style-pint with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 artisanpack-ui/code-style-pint contains the following files

Loading the files please wait ...