# phpv8/v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine

Repository: https://github.com/phpv8/v8js
Canonical: https://ross.abutalabs.com/products/v8js
Homepage: http://pecl.php.net/package/v8js
Language: C++
License: MIT
License Family: permissive
Topics: v8js, javascript, php, php-extension, v8, v8-javascript-engine, php-v8
Last push: 2026-04-19T08:37:01+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 8, longevity 100
- inputs: {"age_days": 5241, "days_push": 136, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1856, forks 204 (observed 2026-08-28T04:05:44.971602+00:00)

## What it is
V8Js is a PHP extension that embeds Google's V8 JavaScript engine into PHP, allowing execution of JavaScript code from PHP scripts. It provides a sandboxed environment with configurable time and memory limits for safely running untrusted JavaScript.

## Use cases
- run javascript from php
- execute untrusted user javascript in a sandbox
- render javascript templates server-side in a php app
- evaluate js expressions inside a php application
- share business logic between php backend and js
- sandbox third-party scripts with time and memory limits

## When to choose
- you need to execute javascript within a php application
- you must run untrusted js safely with resource limits
- you want node-like module support inside php

## When to avoid
- your stack is not php
- you need windows support
- you can use a separate node.js service instead
- you need the latest v8 features on unsupported platforms

## Facets
- artifact type: library
- maturity: maintenance
- function: interpreter, security, developer-tools
- domain: programming-languages, developer-tools, web-development
- platform: php, cpp
- tags: v8, javascript-engine, php-extension, sandbox, pecl, linux, macos

## Member repositories
- phpv8/v8js (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.971602+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:16:39.496641+00:00, confidence not recorded.
  - readme: https://github.com/phpv8/v8js (fetched 2026-08-28T04:05:44.971602+00:00, sha 39a2692dc702)
  - homepage: http://pecl.php.net/package/v8js (fetched 2026-08-29T10:55:39.019474+00:00, sha 938a3f9b8c60)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js (fetched 2026-08-29T10:55:39.022064+00:00, sha f90824da26de)
  - site_page: http://php.net/v8js (fetched 2026-08-29T10:55:39.026590+00:00, sha b78a9e3db6cf)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=2.1.2 (fetched 2026-08-29T10:55:39.028810+00:00, sha f90824da26de)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=2.1.1 (fetched 2026-08-29T10:55:39.030596+00:00, sha f90824da26de)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=2.1.0 (fetched 2026-08-29T10:55:39.032402+00:00, sha f90824da26de)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=2.0.0 (fetched 2026-08-29T10:55:39.034023+00:00, sha f90824da26de)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=1.4.1 (fetched 2026-08-29T10:55:39.035739+00:00, sha f90824da26de)
  - site_page: http://pecl.php.net/package-changelog.php?package=v8js&release=1.4.0 (fetched 2026-08-29T10:55:39.037486+00:00, sha f90824da26de)
- Data as of 2026-08-30T08:39:29.467469+00:00.
