Package Details: php-cs-fixer 3.52.1-1

Git Clone URL: https://aur.archlinux.org/php-cs-fixer.git (read-only, click to copy)
Package Base: php-cs-fixer
Description: Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
Upstream URL: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
Keywords: php
Licenses: MIT
Submitter: bgaleotti
Maintainer: bgaleotti (sanduhrs)
Last Packager: sanduhrs
Votes: 27
Popularity: 0.011281
First Submitted: 2012-08-10 16:53 (UTC)
Last Updated: 2024-04-02 11:31 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

Skatox commented on 2023-01-08 15:28 (UTC)

Please add php-sodium as a make depends.

It's needed in order to compile this app.

tjbp commented on 2022-07-18 19:13 (UTC) (edited on 2022-07-18 19:13 (UTC) by tjbp)

I needed a make depends for php-sodium to make this build.

vladimir commented on 2022-03-17 13:25 (UTC)

Hello, I am sharing little patch, which makes final phar always executing system installed php. In case one is using something like nix-shell to get older php versions running dependency on environment breaks cs-fixer...

diff --git a/PKGBUILD b/PKGBUILD
index 035ce1f..34ae0e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,11 @@ makedepends=("php-humbug-box-bin" "composer" "git")
 source=("${_pkgname}"::"git+https://github.com/FriendsOfPHP/PHP-CS-Fixer#tag=v${pkgver}")
 md5sums=('SKIP')

+prepare() {
+    cd "${srcdir}/${_pkgname}"
+    sed -i '1s|.*|#!/usr/bin/php|' php-cs-fixer
+}
+
 build() {
   cd "${srcdir}/${_pkgname}"
   php /usr/bin/composer install --prefer-dist --no-dev

system7 commented on 2022-02-18 08:09 (UTC) (edited on 2022-02-18 08:09 (UTC) by system7)

There is a problem w/ update and install too.

❯ yay -S php-cs-fixer
 -> status 200: Too many package results.
status 200: Too many package results.
status 200: Too many package results.
status 200: Too many package results.
status 200: Too many package results.
status 200: Too many package results.

aragon123 commented on 2022-01-23 12:02 (UTC)

Due to the latest php81 update I needed to modify the PKGBUILD such that version 3.5.0 is installed (currently latest). Otherwise php-cs-fixer does not work without an additional environment variable, and recognizes some incorrect formats, which are actually correct.

I do not experience any bugs, so I think it should be save to update. At least it works for me ¯_(ツ)_/¯

tjbp commented on 2021-06-15 20:48 (UTC)

@Krisque: if php-humbug-box-bin is failing to build then your comment belongs on that package rather than this one ;)

Krisque commented on 2021-06-15 20:34 (UTC)

It doesn't work for me: "box.phar ... Failed" "LICENSE ... Passed" "Failed to compile php-humbug-box-bin"

vladimir commented on 2021-04-26 08:40 (UTC)

If this is built in clean chroot it does not work.

To fix the issue add dependency on php-intl and run box in build function this way: php -n -d phar.readonly=Off -d extension=intl /usr/bin/box compile

-n is necessary for people who have xdebug enabled and intl disabled. If it is not present box restart itself wih modified php.ini to disable xdebug but intl disabled again.

Skatox commented on 2021-04-01 15:10 (UTC)

You have to increase the PHP version on depends array. Now it should be:

depends=("php>=7.2")

tjbp commented on 2021-03-12 13:30 (UTC)

Any chance of an update to 2.18 please? 2.17 doesn't have PHP 8 support, which is now stable and used by the php package.