Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,19 @@ $result = $script->Run($context);
echo $result->ToString($context)->Value(), PHP_EOL;
```

which will output `Hello, World!`. See how it's shorter and more readable than [that C++ version]([v8-hello-world])?
which will output `Hello, World!`. See how it's shorter and more readable than [that C++ version][v8-hello-world]?
And it also doesn't limit you from V8 API utilizing to implement more amazing stuff.


## Stub files

If you are also using Composer, it is recommended to add the [php-v8-stub][php-v8-stubs]
package as a dev-mode requirement. It provides skeleton definitions and annotations to enable support for auto-completion
in your IDE and other code-analysis tools.

composer require --dev pinepain/php-v8-stubs


## Installation

### Requirements
Expand Down Expand Up @@ -155,3 +165,4 @@ Copyright (c) 2015-2016 Bogdan Padalko <pinepain@gmail.com>
[v8-intro]: https://developers.google.com/v8/intro
[php70-v8.rb]: https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php70-v8.rb
[php71-v8.rb]: https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php71-v8.rb
[php-v8-stubs]: https://github.com/pinepain/php-v8-stubs
3 changes: 2 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ if test "$PHP_V8" != "no"; then

for static_link_extra_file in $static_link_extra; do
AC_MSG_CHECKING([for $static_link_extra_file])
static_link_dir=""

for i in $PHP_V8 $SEARCH_PATH ; do
if test -r $i/lib64/$static_link_extra_file; then
Expand All @@ -90,7 +91,7 @@ if test "$PHP_V8" != "no"; then

if test -z "$static_link_dir"; then
AC_MSG_RESULT([not found])
AC_MSG_ERROR([Please provide $static_link_extra_file next to the libv8.so, see README.md for details])
AC_MSG_ERROR([Please provide $static_link_extra_file next to the libv8.so])
fi

LDFLAGS="$LDFLAGS $static_link_dir/$static_link_extra_file"
Expand Down