Skip to content

Better PHP Support#2470

Open
HighLiuk wants to merge 46 commits into
glideapps:masterfrom
HighLiuk:master
Open

Better PHP Support#2470
HighLiuk wants to merge 46 commits into
glideapps:masterfrom
HighLiuk:master

Conversation

@HighLiuk

Copy link
Copy Markdown

Would close #2432.

Adds several options & revisits how validation works.
Also, it adds a "PHP Version" option to target a specific version of PHP, turning off features that were not supported in that version automatically. More on this on the related issue.

@HighLiuk

Copy link
Copy Markdown
Author

@dvdsgl here we are. Question: how is Quicktype supposed to run test against several languages specific code? I'd like to add PHP specific tests (parsing would be nice to start with, but would be nice to run PHP tests on the generated classes if that's possible).

@dvdsgl

dvdsgl commented Jan 11, 2024

Copy link
Copy Markdown
Member

This is amazing!

Our CI already runs PHP tests.

Take a look at test/languages.ts – search for PHP

@dvdsgl

dvdsgl commented Jan 11, 2024

Copy link
Copy Markdown
Member

Here's the PHP CI test run: https://github.com/glideapps/quicktype/actions/runs/7494968972/job/20406252954?pr=2470

@HighLiuk

Copy link
Copy Markdown
Author

Thanks @dvdsgl I'll check them out and update the PR as soon as more tests pass

By the way, tests are running on PHP 8.2 in CI, but if I target different PHP versions, it would be nicer if I can run tests for each PHP version.
Also, last PHP version is 8.3 since a couple weeks

@dvdsgl

dvdsgl commented Jan 12, 2024

Copy link
Copy Markdown
Member

Sure thing, we can configure the system to run on multiple versions of PHP. I'll just warn you right now that our CI is in a weird state.

@dvdsgl

dvdsgl commented Feb 14, 2024

Copy link
Copy Markdown
Member

Hi there. Our CI is now fixed – please rebase.

@dvdsgl dvdsgl enabled auto-merge (squash) April 13, 2024 21:50
@dvdsgl dvdsgl disabled auto-merge April 13, 2024 21:50
@dvdsgl

dvdsgl commented Apr 13, 2024

Copy link
Copy Markdown
Member

@HighLiuk I'd love to merge this—can you rebase so I can run the CI tests?

@HighLiuk

HighLiuk commented Apr 15, 2024

Copy link
Copy Markdown
Author

Hey @dvdsgl the fact is that I've found on my machine that tests don't pass. So I was diving deeper and then just had other things to do and not so much time to make the tests pass... though I know it's a requirement.

Anyway let's check them out together, I've rebased it (I guess)

@dvdsgl

dvdsgl commented Apr 15, 2024 via email

Copy link
Copy Markdown
Member

@HighLiuk

Copy link
Copy Markdown
Author

Hey @dvdsgl, do you have some easy trick to easily test changes in local development (like Nodemon/Vite), without building all the way down every single time I make a change?

@SimonCahill

Copy link
Copy Markdown
Contributor

Any updates on this? PHP support is practically unusable in its current state...

@HighLiuk

HighLiuk commented Apr 8, 2025

Copy link
Copy Markdown
Author

Sorry I have no time to work on this. If anyone wants to fork to follow up I'd be glad

@SimonCahill

Copy link
Copy Markdown
Contributor

I doubt that, even if someone were able to fork and continue your work, it would be merged.
This repo seems to be dying.

@schani

schani commented Jul 9, 2026

Copy link
Copy Markdown
Member

This PR has merge conflicts with master, and "allow edits from maintainers" is not enabled on the fork, so we can't update the branch for you. Could you merge master (or rebase) and resolve the conflicts? Enabling maintainer edits would also let us help with future conflicts. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better PHP Support

4 participants