Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124124 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id D48391A009C for ; Mon, 1 Jul 2024 02:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719800374; bh=kk1HaL/+kK5oH1tQ2Z7P1+uVNsAD8fppjZpAd1KqBJQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Z5lkhWw6vWo1XonkVmOP9MKr0SgzN8i8rmSLwXgD4pQXdJPopXtKCVzBSBEafre28 K4zi5JLPf9wh0nzuQLWO2bxZJbr9Yb+JEg2KRzLFSM42hXYkChPvBf4d7usU0MsLya Yj9jeHl7GWiP26DGQAzQkGIVcUlQpoZpjPyHMsjBzFY4dXmAzdy5ZCnjUmlQET9Nnn Rr7VV3dyswZIx+7Cwq+L0K/SZJqfqyFqmI2EB3nJyIVxqZDz7wgY43RLLCwyaAtk/O Ealll6sNK2IprFrWILUWjj2j4NSRiEC63LqpIj4nxBgHMSGvcUpldnHXp0U+2mg7nB 66b7dIzeno8QQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3FFE9180003 for ; Mon, 1 Jul 2024 02:19:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jul 2024 02:19:33 +0000 (UTC) Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-e02bda4aba3so2268083276.3 for ; Sun, 30 Jun 2024 19:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1719800293; x=1720405093; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kk1HaL/+kK5oH1tQ2Z7P1+uVNsAD8fppjZpAd1KqBJQ=; b=KdRv8jzIi/KuKuXHXbMYJxzqr3YRRRv5cslg8/ZFN8aN6J6YcCdYVcTepRBhfYPN1X aP8R3U/eTtRfm5hrTb/Bxjm/x+huaCy4WZxvGjcD14JDJ/fa+QlrhQLQ1TQzTISGRBRJ 4t26as3L6wRIesFgcwF8vZ5LnbqlElKa6ShFICVK8anAzQrxY6L5HMpHnOtZSyKD+4OL 7wXb5UhFeiK+UGXJ0rVP4mP+3Cef1Cm7Fuem0vwfUuzCuf/zNgvYVDUDixe6596hQMuv 7eNQ33GKjPtsQdofiINC+lIMyX5G8pBLOrK7qxEKDrudQuKmlUEAzDLy6OjuZ2OAJgnG ER4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719800293; x=1720405093; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kk1HaL/+kK5oH1tQ2Z7P1+uVNsAD8fppjZpAd1KqBJQ=; b=N373K1CoQ+UcMbtKbOSKHdAfoK3ocWaKDp7U57egi4NAyRgszrIgi70UKnGzyjHhTT pyRDZ/ljLqV02zZ6ovfQDtxLZhcAU3Ey8n7h9VjzDbqY0DdJLHcgaGFP053AdhOseFkJ fx53HpOaaHbk5n0gQbIhT/ObwVtcclfm7bbQem3jKHBH+XzTft7oFvLLKeCPXh3RmQP0 1TdeFec95sRp85NIvWr6gH/lYu29GPla2PpsTmoV462moK5WtTD07mM3ruYNLq6/syeG iOWzbqJXh0lXSfZS8lBonLlYle62ZTxSZnOF80D3r4ByZbCfF7Uah/zPrMnT1X/bqhib QvYQ== X-Gm-Message-State: AOJu0YxiAhTH2L98QCSXR37dkP29BsmNBL3YUKaRmHyfHgR3FI3wW+gj qndtAWbcghmAHwTkxeweP3fdZBjDf0ANNtZYm2SSRoh1TiWHK0dJ+BSS0VWrdOg= X-Google-Smtp-Source: AGHT+IFPVdGk1ABCMPCh9zDt4kNoN6Dffky/B3A1NPTxgYgN5Yx9vO8ttZnFQwVds4J9cgP33a//RA== X-Received: by 2002:a5b:a91:0:b0:de6:3d8:3deb with SMTP id 3f1490d57ef6-e036eb61985mr4250961276.21.1719800292774; Sun, 30 Jun 2024 19:18:12 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e0353f45ec5sm1114951276.42.2024.06.30.19.18.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jun 2024 19:18:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript) In-Reply-To: <9f3da67f-5512-4643-89cc-05fc0981a791@app.fastmail.com> Date: Sun, 30 Jun 2024 22:18:11 -0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <1917CF7C-26D8-4DBE-B05C-5AA650AC6C9F@rwec.co.uk> <551cd5b0-1c00-4818-a9ca-97f6b7e8c3dc@app.fastmail.com> <39B496F8-062E-4848-9B3B-529BE8D3415A@newclarity.net> <856F4F70-DC81-4098-82DD-5F6D47CDF3F0@newclarity.net> <9f3da67f-5512-4643-89cc-05fc0981a791@app.fastmail.com> To: Rob Landers X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) > On Jun 30, 2024, at 5:18 PM, Rob Landers wrote: > I think composer and friends are a moot point. If we go a bespoke way = for everything, we end up with a mess. What about creating "hooks" that = things like composer can "register" an installer at? For example, we = could define a "WELL_KNOWN/installers/composer/hooks.json" (I'm gonna = steal a bunch of ideas from kubernetes from here on), where WELL_KNOWN = is some engine-specific directory (like where the php.ini file is). = Basically, any installer can register an installer by creating a = directory in WELL_KNOWN/installers of which an installer might look like = the following for composer: There is such a thing as a /.well-known/ URI thanks to RFC 8615: https://datatracker.ietf.org/doc/html/rfc8615 https://en.wikipedia.org/wiki/Well-known_URI Not sure if you are envisioning a web-accessible `hooks.json` or not. #justfyi=20 -Mike=