Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24897 invoked from network); 8 Sep 2016 18:45:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2016 18:45:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=daniel@honestempire.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=daniel@honestempire.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain honestempire.com designates 66.111.4.28 as permitted sender) X-PHP-List-Original-Sender: daniel@honestempire.com X-Host-Fingerprint: 66.111.4.28 out4-smtp.messagingengine.com Received: from [66.111.4.28] ([66.111.4.28:39363] helo=out4-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/65-61313-2C1B1D75 for ; Thu, 08 Sep 2016 14:45:22 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 91E7A206DC for ; Thu, 8 Sep 2016 14:45:19 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute4.internal (MEProxy); Thu, 08 Sep 2016 14:45:19 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=honestempire.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=ykw/CBv15hspULjtOJIf8EHFB7g=; b=Kea+yn +SZ5hMGmeETLibYYLUjA8NezIiXuaZNNWDb5Bx7SsLGVo2Zas95YOiUYWIAgXty7 sH+rXeEVWa/VoMjF5grTrJksWtVthPbG0t05mHDLaFA+tIj1i8ttf+/iTWTURtQU dFtaT0vID6h86QoIBfvkAc+B0WQ/EMKwawXF4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ykw/CBv15hspULj tOJIf8EHFB7g=; b=orogPsoszXMGLFN99JyApcNMacjp5BQLl6RwMN/0O83vYcg HJZ+r1YfXBCtzcvsRWe/oJQFfccmIJ4y12GatNYNVMtesRii35veDccpkgkvE7j7 seRNVwMdYTNR9KmyPvgZ9E7RDfH2rwiOlDcd7ZxZQ43q6V19Lo6FsqhzH6CY= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 61F0C6A5C7; Thu, 8 Sep 2016 14:45:19 -0400 (EDT) Message-ID: <1473360319.82408.719912961.2D1C65E2@webmail.messagingengine.com> X-Sasl-Enc: XjoDpgyr8Mmba8uQOQjFtyCCp7DXwafei5aUww0QWRVj 1473360319 To: internals@lists.php.net MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-fa733828 Date: Thu, 08 Sep 2016 19:45:19 +0100 In-Reply-To: <3ec68c67-a4de-1727-c3c8-e8fcacd95f0c@lsces.co.uk> References: <04998da0-6344-0b8b-c69a-411400e340ba@lsces.co.uk> <1473323097.1378681.719308017.2139F909@webmail.messagingengine.com> <8493a9dd-1f0e-f15f-3651-0278cf25234b@lsces.co.uk> <3ec68c67-a4de-1727-c3c8-e8fcacd95f0c@lsces.co.uk> Subject: Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace withcomposer/pickle From: daniel@honestempire.com (Daniel Morris) On Thu, 8 Sep 2016, at 05:21 PM, Lester Caine wrote: > Another couple of hours wasted, but I understand where things are now, > and basically the simple fact is that composer global mode is nothing of > the sort. The PHP_CodeSniffer composer install does not work and I > understand NOW why the Smarty one also failed. I was expecting the files > to be available to the nginx server but they were hidden away in my home > directory. I still have to work out just how to reset things to move the > code to /usr/shared/phpx/composer to parallel the PEAR version. PHP_CodeSniffer should not be run by the web server, it's a command-line development tool, it should be run by the developer, or as part of a build (e.g. Travis, Ant, etcetera) Composer allows you to separate the dependencies, for example, in your case; Smarty is a production and development dependency, and PHPCS is a development dependency only, your `composer.json` should have something similar to the following: ``` { "require": { "smarty/smarty": "~3.1" }, "require-dev": { "squizlabs/php_codesniffer": "^2.7" } } ``` That way, anytime someone runs `composer install` from your project directory (or wherever the composer.json dependency is contained), it will create a `vendor` directory with your dependencies, if you haven't used the `--no-dev` flag when running `composer install`, you will have PHPCS ready and waiting in `vendor/bin`, others will have the same toolset you're using, so discrepancies between environments will have been reduced. -- Daniel Morris daniel@honestempire.com