Package Details: php-cs-fixer 2.14.0-2

Git Clone URL: https://aur.archlinux.org/php-cs-fixer.git (read-only)
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: http://cs.sensiolabs.org/
Keywords: php
Licenses: MIT
Submitter: bgaleotti
Maintainer: bgaleotti (sanduhrs)
Last Packager: bgaleotti
Votes: 24
Popularity: 0.042534
First Submitted: 2012-08-10 16:53
Last Updated: 2019-01-13 16:23

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

hriad commented on 2019-01-13 07:18

Thanks for the diff @danger89

danger89 commented on 2019-01-05 01:50

Yes, Finally we have v2.14.0 Sunrise, supporting 7.3 now officially. Diff for pkgbuild:

diff --git a/PKGBUILD b/PKGBUILD
index 05acdbe..042304d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@

 _pkgname=php-cs-fixer
 pkgname=${_pkgname}
-pkgver=2.13.1
+pkgver=2.14.0
 pkgrel=1
 pkgdesc="Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)."
 url="http://cs.sensiolabs.org/"
 license=("MIT")
 arch=("any")
-depends=("php>=5.6" "php<7.3")
+depends=("php>=5.6" "php>=7")
 makedepends=("php-box" "php-composer" "git")
 source=("${_pkgname}"::"git+https://github.com/FriendsOfPHP/PHP-CS-Fixer#tag=v${pkgver}")
 md5sums=('SKIP')

macfly commented on 2018-03-01 15:44

Thanks for your quick update

sanduhrs commented on 2018-03-01 11:57

@macfly that went in by mistake, should have been <7.3 as seen in the composer.json file: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v2.10.3/composer.json Thanks for reporting!

macfly commented on 2018-03-01 09:32

Why do you require php under version 7.2 ? I've just remove it from the PKGBUILD and it seems ok.

Also on sensiolabs site they say: "PHP needs to be a minimum version of PHP 5.6.0." But not incompatibility with php version 7.2

supermario commented on 2016-02-13 19:20

license needs to be an array now. Can you please update the PKGBUILD?

license=("MIT")

sanduhrs commented on 2016-01-15 11:33

Fixed the problems, current package should work fine.

soyel commented on 2016-01-04 04:55

@sanduhrs PHP in extra is now PHP 7. It causes several problems with the installation of this package with a default PHP install.

* Phar is now bundled inside PHP (See Arch PHP maintainer blog : https://pierre-schmitz.com/php-7-on-arch-linux/).
* "open_basedir" is now commented by default (that means no open_basedir in effect).

Building...
==> Starting check()...
Warning: You must add ':/usr/' to 'open_basedir' setting in your php.ini to use php-cs-fixer
==> ERROR: Makepkg was unable to build php-cs-fixer.

Got rid of the whole "check()" function and few "-d extension=phar.so" inside the "build()" function made the package installation successful.

sanduhrs commented on 2015-12-21 15:02

Updated the package to inform the user of the runtime requirements.

lakiluki commented on 2015-12-19 14:03

PHP Fatal error: Class 'Phar' not found in /usr/bin/composer on line 23

Getting this error when installing the package.


EDIT: Got it to work by adding the phar.so extension to php.ini and adding /usr/bin to open_basedir.