Use PHP functions in JavaScript

Missing Functions


Here is a list of functions missing from php.js. They are divided into 4 categories:
  • Unported

    Functions we would like to have in php.js one day

  • Notporting

    Functions that probably can't or shouldn't be ported to JavaScript

  • Experimental

    Functions or implementations that raise questions (Deprecated in PHP, large size, impossible or questionable as to how to implement in the same way as PHP, complete but useless without implementing functions that provide input to them, etc.)

  • Workbench

    Functions that are under construction

» Unported

Functions we would like to have in php.js one day

Date and Time

Filesystem

Miscellaneous Functions

PHP Options and Information

Streams

  • stream_bucket_append (create)
  • stream_bucket_make_writeable (create)
  • stream_bucket_new (create)
  • stream_bucket_prepend (create)
  • stream_copy_to_stream (create)
  • stream_encoding (create)
  • stream_get_meta_data (create)
  • stream_get_transports (create)
  • stream_resolve_include_path (create)
  • stream_select (create)
  • stream_set_blocking (create)
  • stream_set_timeout (create)
  • stream_set_write_buffer (create)

XML Parser

  • xml_error_string (create)
  • xml_get_current_byte_index (create)
  • xml_get_current_column_number (create)
  • xml_get_current_line_number (create)
  • xml_get_error_code (create)
  • xml_parse (create)
  • xml_parse_into_struct (create)
  • xml_parser_create (create)
  • xml_parser_create_ns (create)
  • xml_parser_free (create)
  • xml_parser_get_option (create)
  • xml_parser_set_option (create)
  • xml_set_character_data_handler (create)
  • xml_set_default_handler (create)
  • xml_set_element_handler (create)
  • xml_set_end_namespace_decl_handler (create)
  • xml_set_external_entity_ref_handler (create)
  • xml_set_notation_decl_handler (create)
  • xml_set_object (create)
  • xml_set_processing_instruction_handler (create)
  • xml_set_start_namespace_decl_handler (create)
  • xml_set_unparsed_entity_decl_handler (create)

xdiff

  • xdiff_file_bdiff (create)
  • xdiff_file_bdiff_size (create)
  • xdiff_file_bpatch (create)
  • xdiff_file_diff_binary (create)
  • xdiff_file_merge3 (create)
  • xdiff_file_patch_binary (create)
  • xdiff_file_rabdiff (create)
  • xdiff_string_bdiff (create)
  • xdiff_string_bdiff_size (create)
  • xdiff_string_bpatch (create)
  • xdiff_string_diff_binary (create)
  • xdiff_string_merge3 (create)
  • xdiff_string_patch_binary (create)
  • xdiff_string_rabdiff (create)

BCMath Arbitrary Precision Mathematics

Error Handling and Logging

  • debug_print_backtrace (create)

Mathematical Functions

Output Buffering Control

Regular Expressions (Perl-Compatible)

Strings

runkit

» Notporting

Functions that probably can't or shouldn't be ported to JavaScript

Date and Time

  • timezone_version_get (review)

Filesystem

Language & Control Structures

Network

Program execution Functions

Streams

  • stream_socket_accept (review)
  • stream_socket_client (review)
  • stream_socket_enable_crypto (review)
  • stream_socket_get_name (review)
  • stream_socket_pair (review)
  • stream_socket_recvfrom (review)
  • stream_socket_sendto (review)
  • stream_socket_server (review)
  • stream_socket_shutdown (review)
  • stream_supports_lock (review)

XMLWriter

Class/Object Information

Directory Functions

Function Handling

  • register_tick_function (review)
  • unregister_tick_function (review)

Miscellaneous Functions

PHP Options and Information

Session Functions

Variable handling

runkit

  • runkit_return_value_used (review)

» Experimental

Functions or implementations that raise questions (Deprecated in PHP, large size, impossible or questionable as to how to implement in the same way as PHP, complete but useless without implementing functions that provide input to them, etc.)

Arrays

Date and Time

Gettext

Mathematical Functions

Network

  • define_syslog_variables (review)

Output Buffering Control

  • ob_implicit_flush (review)
  • output_add_rewrite_var (review)
  • output_reset_rewrite_vars (review)

Streams

  • stream_default_encoding (review)
  • stream_filter_prepend (review)
  • stream_filter_register (review)
  • stream_filter_remove (review)
  • stream_get_filters (review)
  • stream_get_wrappers (review)
  • stream_register_wrapper (review)
  • stream_wrapper_register (review)
  • stream_wrapper_restore() (review)
  • stream_wrapper_unregister (review)

Tokenizer

XMLWriter

  • xmlwriter_end_attribute (review)
  • xmlwriter_end_cdata (review)
  • xmlwriter_end_comment (review)
  • xmlwriter_end_document (review)
  • xmlwriter_end_dtd (review)
  • xmlwriter_end_dtd_attlist (review)
  • xmlwriter_end_dtd_element (review)
  • xmlwriter_end_dtd_entity (review)
  • xmlwriter_end_element (review)
  • xmlwriter_end_pi (review)
  • xmlwriter_flush (review)
  • xmlwriter_full_end_element (review)
  • xmlwriter_output_memory (review)
  • xmlwriter_set_indent (review)
  • xmlwriter_set_indent_string (review)
  • xmlwriter_start_attribute (review)
  • xmlwriter_start_attribute_ns (review)
  • xmlwriter_start_cdata (review)
  • xmlwriter_start_comment (review)
  • xmlwriter_start_document (review)
  • xmlwriter_start_dtd (review)
  • xmlwriter_start_dtd_attlist (review)
  • xmlwriter_start_dtd_element (review)
  • xmlwriter_start_dtd_entity (review)
  • xmlwriter_start_element (review)
  • xmlwriter_start_element_ns (review)
  • xmlwriter_start_pi (review)
  • xmlwriter_text (review)
  • xmlwriter_write_attribute (review)
  • xmlwriter_write_attribute_ns (review)
  • xmlwriter_write_cdata (review)
  • xmlwriter_write_comment (review)
  • xmlwriter_write_dtd (review)
  • xmlwriter_write_dtd_attlist (review)
  • xmlwriter_write_dtd_element (review)
  • xmlwriter_write_dtd_entity (review)
  • xmlwriter_write_element (review)
  • xmlwriter_write_element_ns (review)
  • xmlwriter_write_pi (review)
  • xmlwriter_write_raw (review)

Class/Object Information

Error Handling and Logging

Language & Control Structures

Miscellaneous Functions

Object property and method call overloading

PHP Options and Information

Strings

Variable handling

xdiff

» Workbench

Functions that are under construction

BCMath Arbitrary Precision Mathematics

Error Handling and Logging

Gettext

Language & Control Structures

Miscellaneous Functions

Output Buffering Control

Session Functions

Strings

Variable handling

XMLWriter

  • xmlwriter_open_memory (review)

Date and Time

Filesystem

Inclusion hierarchy viewer

Mail

Network

Regular Expressions (Perl-Compatible)

Streams

  • stream_filter_append (review)

Tokenizer

XMLReader

[internal] php.js shared libs - legacy

Download

Download

There is a wide variety of packages if the default doesn't suit you.
You can also compile your own package to avoid any overhead.

Support us

spread the word:


Use any PHP function in JavaScript


These kind folks have already donated: AYHAN BARI*, Nikita Ekshiyan, Nikita Ekshiyan, Petr Pavel, @HalfWinter, Paulo Freitas, Andros Peña Romo, @andorosu, Raimund Szabo, Nitin Gupta, @nikosdion, Anonymous, Anonymous and Shawn Houser.
<your name here>

Click here to lend your support to: phpjs and make a donation at www.pledgie.com !

RSS

Tweets

Comments

Who uses php.js

If you use php.js, let us know and get linked.

Progress

php.js is complete for 79.6%

php.js on

Discuss php.js' future at Google Groups
Help improve php.js on github



Powered by php.js
Stats