/    Sign up×
Community /Pin to ProfileBookmark

Languages that compile to PHP

Hi,

As announced in another [URL=”http://www.webdeveloper.com/forum/showthread.php?364943-PHP-without-dollar-signs-)”]thread[/URL] on this forum, I’ve just released on Github an internal tool that I use to develop PHP websites with a more concise and readable syntax.

In order to improve it, I would like to know if some of you have already used in production any other language that compiles down to PHP, and what was your experience with this approach.

Thanks ?

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 22.2017 — Only thing I know of are some of the templating languages used primarily as the "view" part of MVC applications, such as Smarty. Personally, in those cases, I tend to find it easier to just write PHP; but then I've been using it for years. ?
Copy linkTweet thisAlerts:
@ecstaticcoderauthorJul 22.2017 — Only thing I know of are some of the templating languages used primarily as the "view" part of MVC applications, such as Smarty. Personally, in those cases, I tend to find it easier to just write PHP; but then I've been using it for years. ?[/QUOTE]

Nice pick ! Thanks for the feedback ?

I especially like is the "{$variable|format}" syntax, I think I'll try to add a similar feature to my own tool ?
Copy linkTweet thisAlerts:
@rootJul 30.2017 — Template tools (or libraries and frameworks) are all well and good but they do add an overhead to the server and more so when the site gets busy, its responsiveness may be compromised and sites on shared servers may find it more of a bottleneck and slows the server down with more work to do.
Copy linkTweet thisAlerts:
@NogDogJul 30.2017 — Template tools (or libraries and frameworks) are all well and good but they do add an overhead to the server and more so when the site gets busy, its responsiveness may be compromised and sites on shared servers may find it more of a bottleneck and slows the server down with more work to do.[/QUOTE]

I know that Smarty can be configured to cache the compilations (as plain PHP files) to help with this -- which means you have to remember to clear those caches when you update the deployed code. ?
Copy linkTweet thisAlerts:
@rootJul 30.2017 — Oh for sure but how many people actually do?

The CMS I was using on my friends blog have that feature, you could generate a hard copy of the site, the problems came in to play when you got several hundred pages that would be generated again in case the database was edited. It wasn't that sophisticated piece of software but my friend found it really user friendly to run.
Copy linkTweet thisAlerts:
@evoluerJul 31.2017 — Hi esstaticcoder,

Can you post the github link?, is it accessible to the public?, would like to try it out
Copy linkTweet thisAlerts:
@ecstaticcoderauthorAug 01.2017 — Ok, you mean it's necessary that the PHP files are generated [U]only[/U] if their source files have been modified.
×

Success!

Help @ecstaticcoder spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...