{"id":13470240,"url":"https://github.com/jphp-group/jphp","last_synced_at":"2026-03-15T10:30:39.032Z","repository":{"id":11274129,"uuid":"13680801","full_name":"jphp-group/jphp","owner":"jphp-group","description":"JPHP - an implementation of PHP on Java VM","archived":false,"fork":false,"pushed_at":"2021-12-25T13:33:44.000Z","size":12170,"stargazers_count":1708,"open_issues_count":44,"forks_count":160,"subscribers_count":104,"default_branch":"master","last_synced_at":"2024-10-29T17:47:25.678Z","etag":null,"topics":["bytecode","compiler","java","java-vm","jit","jphp","jvm","php","php-language","zend-php"],"latest_commit_sha":null,"homepage":"http://jphp.develnext.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jphp-group.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-18T14:52:53.000Z","updated_at":"2024-10-28T21:42:07.000Z","dependencies_parsed_at":"2022-09-19T09:11:54.534Z","dependency_job_id":null,"html_url":"https://github.com/jphp-group/jphp","commit_stats":null,"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2Fjphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2Fjphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2Fjphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2Fjphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jphp-group","download_url":"https://codeload.github.com/jphp-group/jphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytecode","compiler","java","java-vm","jit","jphp","jvm","php","php-language","zend-php"],"created_at":"2024-07-31T16:00:26.563Z","updated_at":"2025-12-18T00:26:55.168Z","avatar_url":"https://github.com/jphp-group.png","language":"Java","readme":"JPHP - an implementation of PHP\n===============================\n\n[![Build Status](https://travis-ci.org/jphp-group/jphp.svg?branch=master)](https://travis-ci.org/jphp-group/jphp)\n\nJPHP is a new implementation for PHP which uses the Java VM. It supports many features of the PHP language (7.1+).\n\nHow does it work? JPHP is a compiler like `javac`, it compiles php sources to JVM bytecode and then\ncan execute the result on the Java VM.\n\n- Official Site: **[jphp.develnext.org](http://jphp.develnext.org/)**\n- [Awesome JPHP](https://github.com/jphp-group/awesome-jphp)\n\n### In Production\n\nWe develop a new IDE for beginners like `Game Maker` or `Scirra Construct`. It's based on JPHP, JavaFX, Java 8, Gradle and allows to create desktop games and apps for Linux, Windows and Mac (maybe Android and other platforms in future). The project name is `DevelNext` (https://github.com/jphp-group/develnext-ide), the current status and version of the project is BETA. The project has not yet been localized in English. \n\n### Goals\n\nJPHP is not a replacement for the Zend PHP engine or Facebook HHVM. We don’t plan to implement the zend runtime libraries (e.g. Curl, PRCE, etc.) for JPHP.\n\nOur project started in October 2013. There were a few reasons for that:\n\n1. Ability to use java libraries in PHP ([own extensions](#own-extensions) + [other](https://github.com/jphp-group/awesome-jphp))\n2. Replacing the ugly runtime library of Zend PHP with a better runtime library.\n3. Using the PHP language not only on the web\n4. Multithreading like in Java and C#.\n5. Unicode Strings (Full Support for UTF-8, UTF-16).\n6. Creating GUI Android \u0026 Desktop applications on PHP language.\n\n### Features\n\n+ PHP 7.1+ (and many language features from PHP 7.2, 7.3, 7.4).\n+ JIT (~2.5x faster PHP 5.6, ~1.1x faster PHP 7.0, ~13% slower than PHP 7.4, [bench](#how-to-run-benchmarks)).\n+ Using java libraries and classes in PHP code.\n+ Unicode for strings (UTF-16, like in Java)\n+ [Threading](jphp-runtime/api-docs/classes/php/lang/Thread.md), [Sockets](jphp-runtime/api-docs/classes/php/net/Socket.md), [Environment](jphp-runtime/api-docs/classes/php/lang/Environment.md) architecture (like sandbox objects in the runkit zend extension).\n+ GUI ([JavaFX](https://github.com/jphp-group/jphp-gui-ext) or [SWT](https://github.com/jphp-group/jphp-swt-ext))\n+ Embedded cache system for classes and functions\n+ Optional Hot Reloading for classes and functions\n+ Ability to use on **Android** OS : [jphp-android](https://github.com/VenityStudio/jphp-android)\n\n**What JPHP supports from PHP 7.2?**\n+ All features except RFC: Parameter Type Widening\n\n**What JPHP supports from PHP 7.3?**\n+ All features except RFC: Flexible Heredoc and Nowdoc Syntaxes\n\n**What JPHP supports from PHP 7.4?**\n+ Typed Properties 2.0 (partly, references are not supported)\n+ Weak References\n+ Arrow Functions 2.0 (+ multiple line syntax)\n+ Allow throwing exceptions from __toString()\n+ Null Coalescing Assignment Operator\n+ numeric_literal_separator\n+ Spread Operator in Array Expression\n\n### Own Extensions\n- [Standard Library](jphp-runtime/api-docs) - own runtime standard library\n- [Http Server](exts/jphp-httpserver-ext) (+Web Sockets +Multithread)\n- GUI ([JavaFX](https://github.com/jphp-group/jphp-gui-ext) or [SWT](https://github.com/jphp-group/jphp-swt-ext))\n- [Git](exts/jphp-git-ext/api-docs) (based on JGit)\n- [JSoup](exts/jphp-jsoup-ext/api-docs) - for parsing html in jQuery style.\n- [SQL](exts/jphp-sql-ext/api-docs) (supports [MySQL](exts/jphp-sql-ext/api-docs), [PostgreSQL](exts/jphp-pgsql-ext/api-docs), [SQLite](exts/jphp-sqlite-ext/api-docs), [Firebird](exts/jphp-firebirdsql-ext/api-docs)).\n- [SSH](exts/jphp-ssh-ext/api-docs) - for working with the ssh protocol.\n- [Yaml](exts/jphp-yaml-ext/) - for parsing and formating yaml.\n- [Compress](exts/jphp-compress-ext) - for working with tar, gz, bz2, lz4, zip archives.\n- [HttpClient](exts/jphp-httpclient-ext/api-docs) - http client with promises.\n- [SemVer](exts/jphp-semver-ext/api-docs) - for parsing versions in the SemVer standard.\n- [Mail](exts/jphp-mail-ext/api-docs) - for sending emails via SMTP servers.\n- [MongoDB](exts/jphp-mongo-ext/api-docs) - a driver for Mongo DB 3.0+.\n\n### Documentation\n\n- You can find the latest api documentation here: [jphp-runtime/api-docs](jphp-runtime/api-docs)\n- Wiki here: [read](http://jphp.develnext.org/wiki/)\n\n### Getting started (Hello World)\n\n1. Install jphp package manager (jppm), [how to install](packager/#0-how-to-install-jppm).\n2. Init new project (jppm package) with default values:\n```bash\njppm init\n```\n3. Run in console `jppm start`.\n\nYou will see `Hello World` in your console, the sources of this program will be in `src/index.php`.\n\n4. (Optional) To update jphp version of your old project:\n```bash\njppm update jphp-core\n```\n\n### How to run benchmarks?\n\n```\n// via jphp\n./gradlew bench\n\n// via php\nphp -f bench/src/bench.php\n```\n\n### Build SNAPSHOT from sources\n\nUse `gradle install` to build and install the jphp modules and libraries into the mavel local repository. After this, you can use jphp in your projects as a maven dependency.\n\n`org.develnext.jphp:jphp-\u003cmodule\u003e:\u003cversion\u003e-SNAPSHOT`\n","funding_links":[],"categories":["Java","JVM语言","Languages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphp-group%2Fjphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjphp-group%2Fjphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphp-group%2Fjphp/lists"}