xhp-lib
Class libraries for XHP. XHP is a Hack feature that augments the syntax of the language such that XML document fragments become valid Hack expressions. (by hhvm)
xhp-js
Easily create JS controllers for XHP elements, and XHP wrappers for React elements (by hhvm)
xhp-lib | xhp-js | |
---|---|---|
1 | 2 | |
1,372 | 55 | |
- | - | |
1.1 | 0.0 | |
12 months ago | over 2 years ago | |
Hack | Hack | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xhp-lib
Posts with mentions or reviews of xhp-lib.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-02.
-
Write PHP Code Within Next.js Components
You think this is a joke but Meta/Facebook has something similar for interop between XHP (https://github.com/hhvm/xhp-lib) and React.
xhp-js
Posts with mentions or reviews of xhp-js.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-31.
-
LuaX: A Lua Dialect with JSX
They also made XHP-JS, though it seems inactive.
https://engineering.fb.com/2015/07/09/open-source/announcing...
https://github.com/hhvm/xhp-js
-
Ask HN: State of PHP at Facebook
There is: it's called XHP (https://docs.hhvm.com/hack/XHP/introduction).
That said, I'm not sure how you'd go about server-side rendering React from Hacklang, as it seems that the open-source solution to do so is no longer supported (https://github.com/hhvm/xhp-js).
What are some alternatives?
When comparing xhp-lib and xhp-js you can also consider the following projects:
jest - Delightful JavaScript Testing. [Moved to: https://github.com/jestjs/jest]
hack-codegen - Library to programatically generate Hack code and write it to signed files