Is PHP considered open source?

Asked

Viewed 484 times

5

Is PHP considered open source? If so, are there repositories such as Chromium where we can see their "guts" and/or collaborate on their development? If not, does it owe some right to the languages CGI, C, C++? Since these were used for its creation to the present day.

I’ve done some research but only find vague answers.

1 answer

8


Yes it is open-source, but it is licensed under their own license The PHP License, version 3.01, which implies several issues that can be "legal", including the use of the name "PHP", I can not comment more on these "legal" issues because I do not know the subject and they do not belong to the topic/scope of the site.

You can help improve PHP by following this:

And you can download the specific Gits through the addresses listed in:

PHP (interpreter) is divided into several parts for development and the main one is this [email protected]:/php-src.git.

Most of PHP is written in , it is necessary to understand that this is the "interpreter", ie it is a program that interprets scripts written in PHP, as well as many programming languages are interpreted, they depend on a program that interprets them.


Extra

An example of PHP’s "Fork" is HHVM (Hiphop Virtual Machine), which is a virtual machine (similar to the Java virtual machine, which runs software written in the Java language and both use Jit - just-in-time compilation), however the HHVM is not quite a Fork, it is almost a PHP interpreter rewritten to support their own language called hack, which is similar to the PHP language and also has PHP compatibility.


Extra 2:

Just for the record CGI is not a programming language, it’s a "door" that allows running interpreters or programs via HTTP servers, this must be one of the reasons they confuse Perl with CGI, I remember hearing some people say that they program in "cgi" when they actually programmed in Perl.

It is possible to create a program compiled that works with HTTP and configure it to run with CGI, of course today the most common is to use Fast-CGI, precisely due to performance issues.

  • But tell me, PHP owes rights to its base languages?

  • 1

    What I doubt is this: the question is outside the scope the answer is excellent and answers the question that is outside the scope of the site, because the question is leading negative votes and the positive answer, nothing against anyone, but, an observation of behavior.

  • @Thiago what and base language? PHP is the PHP script interpreter. Could explain better?

  • 1

    @Virgilionovic I tried to promote the part that I believe belongs to be programming, which is the development and modification of the interpreter of PHP scripts. I believe this is the kind of question that is on the boundary line of the on-topic/off-topic.

  • @Guilhermenascimento refers to the languages that gave rise to PHP, back in 1994 with Rasmus Lerdorf and even those currently used, such as C, C++.

  • These languages did not give rise to php @Thiago, Rasmus was inspired by aspects of C and Perl to create PHP. Just for the record, CGI is not a language, it’s just a "port" on the server to run programs through configured interpreters, such as the Perl interpreter or the PHP interpreter.

  • @Guilhermenascimento understood, I appreciate the explanations! But I swore that CGI was a language, because I started programming by CGI/Perl.

  • @Thiago to use the CGI port is something archaic, today there is Fast-CGI, which you can develop a program that works with reverse-proxy, or seek to know languages like Python (which instead of cgi you can use WSGI, which is a CGI properly made for Python), if you want to write PHP scripts the servers use Apache’s own module (usually) or fast-cgi, which dispenses with other settings. If you want to program web I personally recommend looking for languages and tools "more" facing this.

  • Got it, thanks @Guilhermenascimento

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.