Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What PHP to JS package is recommended? #116

Open
augustjanse opened this issue Oct 16, 2021 · 4 comments
Open

What PHP to JS package is recommended? #116

augustjanse opened this issue Oct 16, 2021 · 4 comments

Comments

@augustjanse
Copy link

The part on getting data to JS says this:

The best way is to use specialized PHP to JS package to transfer the data.

What package would that be?

@carlos-mora
Copy link

carlos-mora commented Oct 17, 2021 via email

@augustjanse
Copy link
Author

In that case you're accessing the data with an AJAX style request. Is that what the guideline is saying to do? I don't think that's very clear.

@alexeymezenin
Copy link
Owner

@augustjanse when I wrote this, I meant packages like this one (this particular one is very old). There were plenty of those.

I guess there are better ways to pass data to front-end in 2021. I haven't worked with front-end for a long time, so I can't help here.

I'll keep this issue open so JS guys could share their thoughts about the problem.

@augustjanse
Copy link
Author

Alright, thanks! The upstream to the fork you linked looks like it is being maintained, so it looks like a reasonably good alternative. I thought it was kind of hard to find information about it, though, so it may still be dubious as a best practice. Interested in hearing from others what they think.

A few relevant SE questions:
https://softwareengineering.stackexchange.com/q/421991/328116
https://softwareengineering.stackexchange.com/q/126671/328116
https://stackoverflow.com/q/23740548/1729441
https://stackoverflow.com/q/415868/1729441

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

No branches or pull requests

3 participants