{"id":15021864,"url":"https://github.com/php/pecl-languages-v8js","last_synced_at":"2025-10-19T22:31:46.771Z","repository":{"id":8399531,"uuid":"9979813","full_name":"php/pecl-languages-v8js","owner":"php","description":"V8 Javascript Engine for PHP","archived":false,"fork":false,"pushed_at":"2015-03-13T15:54:51.000Z","size":859,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-29T21:33:30.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pecl.php.net/package/v8js","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php.png","metadata":{"files":{"readme":"README.Linux.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-05-10T11:04:35.000Z","updated_at":"2025-01-18T23:24:27.000Z","dependencies_parsed_at":"2022-07-31T02:18:10.301Z","dependency_job_id":null,"html_url":"https://github.com/php/pecl-languages-v8js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-languages-v8js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-languages-v8js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-languages-v8js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-languages-v8js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php","download_url":"https://codeload.github.com/php/pecl-languages-v8js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237224776,"owners_count":19275085,"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":[],"created_at":"2024-09-24T19:57:09.362Z","updated_at":"2025-10-19T22:31:41.350Z","avatar_url":"https://github.com/php.png","language":"C++","readme":"V8Js on GNU/Linux\n=================\n\nInstallation of V8Js on GNU/Linux is pretty much straight forward.\n\nThe biggest hurdle actually is that you need a rather new v8 library.\nHowever most distributions still ship the rusty version 3.14, publish\nyears ago, since Node.js requires such an old version.\n\nThis means that you usually need to compile v8 on your own before\nyou can start to compile \u0026 install v8js itself.\n\nCompile latest v8\n-----------------\n\n```\ncd /tmp\n\n# Install depot_tools first (needed for source checkout)\ngit clone https://chromium.googlesource.com/chromium/tools/depot_tools.git\nexport PATH=`pwd`/depot_tools:\"$PATH\"\n\n# Download v8\nfetch v8\ncd v8\n\n# (optional) If you'd like to build a certain version:\ngit checkout 3.32.6\ngclient sync\n\n# Build\nmake native library=shared -j8\n\n# Install to /usr\nsudo mkdir -p /usr/lib /usr/include\nsudo cp out/native/lib.target/lib*.so /usr/lib/\nsudo cp -R include/* /usr/include\necho -e \"create /usr/lib/libv8_libplatform.a\\naddlib out/native/obj.target/tools/gyp/libv8_libplatform.a\\nsave\\nend\" | sudo ar -M\n```\n\nIf you don't want to overwrite the system copy of v8, replace `/usr` in\nthe above commands with `/tmp/v8-install` and then add\n`--with-v8js=/tmp/v8-install` to the php-v8js `./configure` command below.\nIf you do that with a v8 library of 4.2 branch or newer, then you need\nto fix the RUNPATH header in the v8js.so library so the libicui18n.so\nis found. By default it is set to `$ORIGIN/lib.target/`, however the files\nlie side by side. Use `chrpath -r '$ORIGIN' libv8.so` to fix.\n\n`libv8_libplatform.a` should not be copied directly since it's a thin\narchive, i.e. it contains only pointers to the build objects, which\notherwise must not be deleted.  The simple mri-script converts the\nthin archive to a normal archive.\n\n\nCompile php-v8js itself\n-----------------------\n\n```\ncd /tmp\ngit clone https://github.com/preillyme/v8js.git\ncd v8js\nphpize\n./configure\nmake\nmake test\nsudo make install\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-languages-v8js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp%2Fpecl-languages-v8js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-languages-v8js/lists"}