[GH-ISSUE #940] composer create-project installing older version #514

Closed
opened 2026-02-25 21:35:13 +03:00 by kerem · 11 comments
Owner

Originally created by @ConnectGrid on GitHub (Apr 3, 2024).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/940

Originally assigned to: @christer77 on GitHub.

🐛 Bugreport

Running composer require jason-munro/cypht installs the latest version (1.4.1 at time of this writing). However, calling composer create-project jason-munro/cypht is installing v1.4.0, which has outdated dependencies that don't support PHP 8.3.x.

I'm not familiar with enough the create-project command to know how to fix this.

Version & Environment

Rev: []

OS: []

Steps to reproduce

  1. Run composer create-project jason-munro/cypht

On PHP 8.3, dependency validation fails.

Originally created by @ConnectGrid on GitHub (Apr 3, 2024). Original GitHub issue: https://github.com/cypht-org/cypht/issues/940 Originally assigned to: @christer77 on GitHub. ## 🐛 Bugreport Running `composer require jason-munro/cypht` installs the latest version (1.4.1 at time of this writing). However, calling `composer create-project jason-munro/cypht` is installing v1.4.0, which has outdated dependencies that don't support PHP 8.3.x. I'm not familiar with enough the `create-project` command to know how to fix this. ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: [] <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: [] ### Steps to reproduce 1. Run `composer create-project jason-munro/cypht` On PHP 8.3, dependency validation fails.
kerem 2026-02-25 21:35:13 +03:00
  • closed this issue
  • added the
    config
    label
Author
Owner

@marclaporte commented on GitHub (Apr 4, 2024):

@christer77 has volunteered on this one.

<!-- gh-comment-id:2035839051 --> @marclaporte commented on GitHub (Apr 4, 2024): @christer77 has volunteered on this one.
Author
Owner

@Shadow243 commented on GitHub (Apr 13, 2024):

@ConnectGrid It could be due to caching.

Did you try this:composer clear-cache and then composer create-project jason-munro/cypht ??

<!-- gh-comment-id:2053713768 --> @Shadow243 commented on GitHub (Apr 13, 2024): @ConnectGrid It could be due to caching. Did you try this:`composer clear-cache` and then `composer create-project jason-munro/cypht` ??
Author
Owner

@marclaporte commented on GitHub (Apr 14, 2024):

On PHP 8.3, dependency validation fails.

What is the exact error message?

Cypht 1.4.x supports minimum PHP 5.6
Cypht 2.0.x (soon to be released) supports minimum PHP 7.4

It could be a pain to support PHP 5.6 to PHP 8.4 so we may want to put a max PHP version for Cypht 1.4.x

Can you try Cypht master? We did some work to support PHP 7.4 to PHP 8.4

<!-- gh-comment-id:2054044815 --> @marclaporte commented on GitHub (Apr 14, 2024): > On PHP 8.3, dependency validation fails. What is the exact error message? Cypht 1.4.x supports minimum PHP 5.6 Cypht 2.0.x (soon to be released) supports minimum PHP 7.4 It could be a pain to support PHP 5.6 to PHP 8.4 so we may want to put a max PHP version for Cypht 1.4.x Can you try Cypht master? We did some work to support PHP 7.4 to PHP 8.4
Author
Owner

@christer77 commented on GitHub (Apr 15, 2024):

ERROR MESSAGE :
The error is not related to cypht but to the htmlpurifier package which was fixed to "^4.13" while this version does not support php 8.3.x, so since 2022-09-16 to fix some bugs including php 8.3.x support htmlpurifier-releases

<!-- gh-comment-id:2056164290 --> @christer77 commented on GitHub (Apr 15, 2024): ERROR MESSAGE : The error is not related to cypht but to the htmlpurifier package which was fixed to "^4.13" while this version does not support php 8.3.x, so since 2022-09-16 to fix some bugs including php 8.3.x support [htmlpurifier-releases](https://github.com/ezyang/htmlpurifier/releases)
Author
Owner

@christer77 commented on GitHub (Apr 15, 2024):

ERROR MESSAGE :
cypht-jason-munro-error

<!-- gh-comment-id:2056199108 --> @christer77 commented on GitHub (Apr 15, 2024): ERROR MESSAGE : ![cypht-jason-munro-error](https://github.com/cypht-org/cypht/assets/62720246/d9d75d8a-b4b9-497b-b01f-fe6a70c8b6bd)
Author
Owner

@marclaporte commented on GitHub (Apr 15, 2024):

ok, so the next version of HTML Purifier will support PHP 8.4
https://github.com/ezyang/htmlpurifier/pull/396

<!-- gh-comment-id:2056641643 --> @marclaporte commented on GitHub (Apr 15, 2024): ok, so the next version of HTML Purifier will support PHP 8.4 https://github.com/ezyang/htmlpurifier/pull/396
Author
Owner

@christer77 commented on GitHub (Apr 15, 2024):

Exactly, and this since version 4.17, this means that I am returning the PR because this of which is 4.16 is limited to 8.3

<!-- gh-comment-id:2056749091 --> @christer77 commented on GitHub (Apr 15, 2024): Exactly, and this since version 4.17, this means that I am returning the PR because [this](https://github.com/cypht-org/cypht/pull/943) of which is 4.16 is limited to 8.3
Author
Owner

@marclaporte commented on GitHub (Apr 15, 2024):

@christer77 You need to generate a composer.lock file as well.

<!-- gh-comment-id:2057945144 --> @marclaporte commented on GitHub (Apr 15, 2024): @christer77 You need to generate a composer.lock file as well.
Author
Owner

@christer77 commented on GitHub (Apr 16, 2024):

It's noted @marclaporte

<!-- gh-comment-id:2058302359 --> @christer77 commented on GitHub (Apr 16, 2024): It's noted @marclaporte
Author
Owner

@marclaporte commented on GitHub (Apr 19, 2024):

@christer77 please see comments for https://github.com/cypht-org/cypht/pull/943

<!-- gh-comment-id:2066382030 --> @marclaporte commented on GitHub (Apr 19, 2024): @christer77 please see comments for https://github.com/cypht-org/cypht/pull/943
Author
Owner

@christer77 commented on GitHub (Apr 21, 2024):

Consideration of comments [#943 ] in PR

<!-- gh-comment-id:2067900031 --> @christer77 commented on GitHub (Apr 21, 2024): Consideration of comments [#943 ] in [PR](https://github.com/cypht-org/cypht/pull/971)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#514
No description provided.