Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120349 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31517 invoked from network); 18 May 2023 19:12:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2023 19:12:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 195C51804F8 for ; Thu, 18 May 2023 12:12:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 May 2023 12:12:34 -0700 (PDT) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6439f186366so1777503b3a.2 for ; Thu, 18 May 2023 12:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684437153; x=1687029153; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=855So2vpYoZuwqzHnmG0hpoy7kFRYWXpNWVFP3aiJHU=; b=o5spB9jn106BZ1PTbYzN6t3V9BSde+0KYa7p0/xvboK9VRvMG2DB1KmZ8s0liptbzn t38hMYFPdT4k5JGNXSziOONCBZEVPalKDXUG85ASjt7mAQPi8JfuaNTmLTOqWc/W+zfc hThqsOdbDkCrHT+P2jy6FH8+JjMX6HCF3Cb89d+P37Bq4mjqA8ASxZAQOCwq3CKjAWOX CnR+RWxkTlPSIyC3gJcfSqaRoSXgC4RGCWaq0eM6JlKUDJvj1wXOWZNEgYbjTDAldNYS 8iHzJtfJNmgubZdcfH+dCmPTWSQb2RS9V/QolRdEQ/UsITytIGx1ATcf/QAoCrTPOVTw De5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684437153; x=1687029153; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=855So2vpYoZuwqzHnmG0hpoy7kFRYWXpNWVFP3aiJHU=; b=T/rsfX57gx+VfH3qQk9jz6f7suZM4/Retm/387xtbklZ/4omUhOkebVrp1KRotxGeY Hj/A4zL2DXOdO3DCqKdnADabHWFemqr/jn6LVQ1jycgO2ISyr7+mdPrvFJpgp/9wTtEK t35UD6gw9Gn30r47dqEed0OXluf0z+VjCjb/CZVb3m356a/S6I/dtCHB5QUTLb/3RiM8 yL2Laao3othSBcjZ6RW2cbibYen5rkv/5JFJLXWoGoAvtIymizNuQdPoflD5mv69BXc3 7qpFDXEa8GHz1XqbxC8wsWPXQ49NnnRtdAN7x166M0cN6w8KoCMi1ovu6HjA3M5ssFOF qdtg== X-Gm-Message-State: AC+VfDzvksksKfcLlMrBFueuRcLoD1aSVPRNH+YKsNwyINfKofWoaYJA 4AF8oL3JxftCrQKhJc+7aesZoxym9copwsF5vYMs3uVx X-Google-Smtp-Source: ACHHUZ4+Sn6NDKWAvDZSwo9hGiHEbjEAPs8bN+I4PSDGQi+vAEIlI/I8uUoFYAfOMdHsHBJvUAUnujaZ3fmI1rn/mRQ= X-Received: by 2002:a05:6a20:728d:b0:100:c7bd:9f5d with SMTP id o13-20020a056a20728d00b00100c7bd9f5dmr880870pzk.44.1684437153180; Thu, 18 May 2023 12:12:33 -0700 (PDT) MIME-Version: 1.0 References: <000201d9897f$aa9f9fa0$ffdedee0$@roze.lv> In-Reply-To: Date: Thu, 18 May 2023 21:12:22 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP Package for PHP From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Marco On Thu, May 18, 2023 at 7:35=E2=80=AFPM Rowan Tommins wrote: > > On Thu, 18 May 2023 at 16:27, Deleu wrote: > > Monolog is a great example of what PHP is missing - a single library for = a > > purpose. I have never worked with any other library besides Monolog and= I > > never worked on any project which didn't have it installed. Perhaps my > > bubble might be a limiting factor here, but I get a feeling that Monolo= g is > > considered to be The Logging PHP Library. > > > > > Then in what sense is it "missing"? What value would be served by placing > an elephant logo on it, and renaming it "PHPLog=E2=84=A2"? > > I know that's a bit of a sarcastic response, but it's also a serious one = - > what would we define as the aims of a replacement for Monolog, which aren= 't > currently being served? > > We could guarantee it was installed with every version of PHP, but only b= y > severely restricting its release cycle, so that every PHP version had > exactly one version of Monolog. If it remains an independently versioned > Composer package, I can't think of much that would change. I fully agree with Rowan. These packages have had many years to get to where they are, and are maintained by capable people. Putting an official stamp on them doesn't make them qualitatively better. I could see an argument being made for bundling them with PHP so that Composer is not required, but that does not seem smart for large libraries that need the freedom to evolve. I'm absolutely in favor for a more complete standard library in terms of basic operations, e.g. better iterator support. > > Laravel's `Arr` class also didn't get scrutinized by PHP RFC so there's= no > > way to know whether it's all good, some good or all bad. > > > > > I don't think PHP's decision-making process can be held up as a shining > example of good governance, in contrast to everyone else's anarchy. I don= 't > know much about Laravel's governance, but I am quite sure every change is > discussed and iterated on before release. In fact, they probably have a > whole bunch of standards and processes that PHP is lacking, and would hav= e > to invent to make any new library a success. Moreover, I believe the main barrier for adding new functions to PHPs standard library is not C but the RFC process itself. "Trial and error" is much easier than making 50+ people agree on the correct solution on the first try. I suppose something we could try is an "official but experimental" Composer package for testing new classes/functions for the standard library before stabilizing them and rewriting them in C. Maybe this could prevent some of the bike-shedding. Ilija