1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00
Commit Graph

44 Commits

Author SHA1 Message Date
James Titcumb
4d3ec06e97 435: added flags to control system dependency scanning behaviour 2026-03-05 11:55:54 +00:00
James Titcumb
637a55d3da Rework PhpizePath to be passed to TargetPlatform 2026-02-12 13:54:51 +00:00
James Titcumb
6da2c7ee6a Merge pull request #452 from asgrim/434-prompt-to-install-build-tools
Prompt to install build tools if they're missing
2025-12-22 17:37:13 +00:00
James Titcumb
43ba15d749 Extract static PHP check 2025-12-22 14:06:55 +00:00
James Titcumb
2f283866be Use PHP 8.5 and PHP_BUILD_PROVIDER to identify if we are running under Static PHP 2025-12-22 14:06:54 +00:00
James Titcumb
1a15aa00e9 434: don't check for build tools on Windows at all 2025-12-17 15:48:15 +00:00
James Titcumb
5b33c984e0 434: add --auto-install-build-tools and --no-build-tools-check flags for controlling build tools checker 2025-12-17 15:47:30 +00:00
James Titcumb
570982361d Added --no-cache option to avoid using Composer cache 2025-10-20 21:34:28 +01:00
James Titcumb
f24fa3a231 Update errors to use writeError 2025-10-16 19:44:22 +01:00
James Titcumb
088acd777e Replace output throughout all of PIE witih Composer ConsoleIO 2025-10-16 19:27:33 +01:00
James Titcumb
e8dbb79d8c Introduce phpstan instead of psalm 2025-09-29 11:47:14 +01:00
James Titcumb
a82b4a5490 Ensure test uses --allow-non-interactive-project-install 2025-09-15 21:38:49 +01:00
James Titcumb
4add071f86 Add basic ability to pie install non-interactively 2025-09-11 15:03:27 +01:00
James Titcumb
411acc5d5a Write the extension name when suggesting alternatives when package is not found 2025-07-04 17:05:43 +01:00
James Titcumb
9971a11638 Handle InvalidPackageName and UnableToResolveRequirement exceptions 2025-06-26 21:50:35 +01:00
James Titcumb
37f62f060c Move working-dir param into configureDownloadBuildInstallOptions 2025-05-28 12:14:39 +01:00
James Titcumb
16435ee844 Allow 'pie install' to be used in a PHP project 2025-04-09 20:08:40 +01:00
James Titcumb
425c42b7b5 Added install-extensions-for-project command initial implementation 2025-04-08 19:45:25 +01:00
James Titcumb
1d3ac873a2 Display pie.json path if in verbose mode 2025-02-28 07:55:06 +00:00
James Titcumb
3fccef1883 Fix help for package+version command hint 2025-02-28 07:20:48 +00:00
James Titcumb
edf17f5963 Refactor PIE Package VO to improve the API 2025-02-05 10:22:25 +00:00
James Titcumb
bb8a463997 Add support for non-Packagist Composer repos in the back end of the PieJsonEditor
NOTE: that this does not enable support in the repository add command, as
Private Packagist does not yet appear to pass down the `php-ext` metadata,
meaning some packages won't actually work.

See: https://github.com/php/pie/issues/175
2025-01-22 10:49:33 +00:00
James Titcumb
cb1069dc87 Added command helper to write out Composer repositories in use 2025-01-21 09:55:25 +00:00
Bellangelo
1641d24357 Make more strict checks 2024-12-31 07:39:41 +02:00
Bellangelo
77073c5bb3 Fix logical error 2024-12-31 07:00:37 +02:00
Bellangelo
fea6ddc054 Add method to determine if --force option is passed 2024-12-31 06:37:00 +02:00
Bellangelo
8a278adea4 Add --force option 2024-12-31 06:33:28 +02:00
James Titcumb
dd7af3e2ae Added --skip-enable-extension option to avoid auto enabling of extensions in php.ini 2024-12-23 08:05:09 +00:00
Alexandre Daubois
7243d71161 Prevent the --with-phpize-path option to be used on Windows 2024-11-19 16:43:18 +01:00
Alexandre Daubois
b10fa93456 Add the --with-phpize-path option 2024-11-18 12:26:42 +01:00
James Titcumb
5bd939b323 Removed redundant type alias RequestedNameAndVersionPair 2024-11-15 10:59:20 +00:00
James Titcumb
e8a4dd6434 Reorganise createComposer into PieComposerFactory 2024-11-15 10:59:18 +00:00
James Titcumb
d8489ab919 Enable installs using Composer installer 2024-11-15 10:59:18 +00:00
James Titcumb
21f1c9d669 Restructure to use Composer and PieComposerRequest to determine order of operations 2024-11-15 10:59:14 +00:00
Tim Düsterhus
678d4cfe99 Remove escapeshellarg() quoting for configure flags
This quoting is not necessary and in fact actively harmful, because the
`./configure` command is not passed to a shell as a string where word-splitting
happens, but as an argv array which the process will use as-is.

As an example, previously providing the `--with-library=/tmp/foo` flag would
result in the `--with-library='/tmp/foo'` flag being passed as the argument,
which then would be interpreted as if `"--with-library='/tmp/foo'"` was entered
into a shell. In other words: The library was expected to be found in a
directory literally starting with a single-quote.
2024-11-15 10:24:38 +01:00
James Titcumb
0f0b0b660e Pass --jobs option to make 2024-10-24 12:34:13 +01:00
James Titcumb
a08cda371f Allow specifying make parallel jobs option to pass to make -jN 2024-10-24 11:55:20 +01:00
James Titcumb
0ba4a6b91b Extract configurePhpConfigOptions in CommandHelper 2024-09-19 19:59:08 +01:00
James Titcumb
4e414bc65d Added info command 2024-08-15 10:47:13 +01:00
James Titcumb
5713757879 Ensure --with-php-path and --with-php-config are used correctly on platform 2024-07-16 08:07:46 +01:00
James Titcumb
20abe9b2d3 Store the path to php-config if given in CLI options 2024-07-11 11:37:29 +01:00
James Titcumb
7746fdd9b3 Added configure option processing from build command 2024-07-09 22:16:40 +01:00
James Titcumb
388da71d8d Add configure options as CLI parameters at runtime 2024-07-09 20:38:46 +01:00
James Titcumb
589693430e Split out re-usable parts from DownloadCommand 2024-07-09 20:38:41 +01:00