» PHP.JS Licensing
435 PHP equivalents
- » PHP.JS Licensing
- PHP.JS SVN
- PHP.JS Namespaced
- abs
- acosh
- acos
- addslashes
- aggregate
- aggregate_info
- aggregate_methods
- aggregate_methods_by_list
- aggregate_methods_by_regexp
- aggregate_properties
- aggregate_properties_by_list
- aggregate_properties_by_regexp
- aggregation_info
- array
- array_change_key_case
- array_chunk
- array_combine
- array_count_values
- array_diff
- array_diff_assoc
- array_diff_key
- array_diff_uassoc
- array_diff_ukey
- array_fill
- array_fill_keys
- array_filter
- array_flip
- array_intersect
- array_intersect_assoc
- array_intersect_key
- array_intersect_uassoc
- array_intersect_ukey
- array_keys
- array_key_exists
- array_map
- array_merge
- array_merge_recursive
- array_multisort
- array_pad
- array_pop
- array_product
- array_push
- array_rand
- array_reduce
- array_replace
- array_replace_recursive
- array_reverse
- array_search
- array_shift
- array_slice
- array_splice
- array_sum
- array_udiff
- array_udiff_assoc
- array_udiff_uassoc
- array_uintersect
- array_uintersect_assoc
- array_uintersect_uassoc
- array_unique
- array_unshift
- array_values
- array_walk
- array_walk_recursive
- arsort
- asinh
- asin
- asort
- assert
- assert_options
- atan2
- atanh
- atan
- base64_decode
- base64_encode
- basename
- base_convert
- bcadd
- bccomp
- bcdiv
- bcmul
- bcround
- bcscale
- bcsub
- bin2hex
- bindec
- call_user_func
- call_user_func_array
- ceil
- checkdate
- chop
- chr
- chunk_split
- classkit_import
- classkit_method_add
- classkit_method_copy
- classkit_method_redefine
- classkit_method_remove
- classkit_method_rename
- class_alias
- class_exists
- compact
- constant
- convert_uuencode
- cosh
- cos
- count
- count_chars
- crc32
- create_function
- ctype_alnum
- ctype_alpha
- ctype_cntrl
- ctype_digit
- ctype_graph
- ctype_lower
- ctype_print
- ctype_punct
- ctype_space
- ctype_upper
- ctype_xdigit
- current
- date
- date_default_timezone_get
- date_default_timezone_set
- date_parse
- deaggregate
- decbin
- dechex
- decoct
- defined
- define
- deg2rad
- die
- dirname
- doubleval
- each
- echo
- empty
- end
- error_get_last
- error_reporting
- escapeshellarg
- exit
- explode
- expm1
- exp
- extract
- fclose
- feof
- fgetcsv
- fgetc
- fgetss
- fgets
- filemtime
- filesize
- file
- file_exists
- file_get_contents
- floatval
- floor
- fmod
- fopen
- forward_static_call
- forward_static_call_array
- fpassthru
- fread
- fseek
- ftell
- function_exists
- func_get_args
- func_get_arg
- func_num_args
- getdate
- getenv
- getlastmod
- getrandmax
- gettimeofday
- gettype
- get_cfg_var
- get_class
- get_class_methods
- get_class_vars
- get_declared_classes
- get_defined_constants
- get_defined_functions
- get_defined_vars
- get_extension_funcs
- get_headers
- get_html_translation_table
- get_included_files
- get_include_path
- get_meta_tags
- get_object_vars
- get_required_files
- get_resource_type
- gmdate
- gmmktime
- gmstrftime
- gopher_parsedir
- hexdec
- htmlentities
- htmlspecialchars
- htmlspecialchars_decode
- html_entity_decode
- http_build_query
- hypot
- i18n_loc_get_default
- i18n_loc_set_default
- idate
- implode
- import_request_variables
- include
- include_once
- ini_alter
- ini_get
- ini_get_all
- ini_restore
- ini_set
- intval
- in_array
- ip2long
- isset
- is_array
- is_binary
- is_bool
- is_buffer
- is_callable
- is_double
- is_finite
- is_float
- is_infinite
- is_integer
- is_int
- is_long
- is_nan
- is_null
- is_numeric
- is_object
- is_real
- is_resource
- is_scalar
- is_string
- is_unicode
- join
- json_decode
- json_encode
- key
- krsort
- ksort
- lcfirst
- lcg_value
- levenshtein
- localeconv
- localtime
- log10
- log1p
- log
- long2ip
- ltrim
- max
- md5
- md5_file
- metaphone
- method_exists
- microtime
- min
- mktime
- money_format
- mt_getrandmax
- mt_rand
- natcasesort
- natsort
- next
- nl2br
- nl_langinfo
- number_format
- octdec
- ord
- parse_str
- parse_url
- pathinfo
- pclose
- phpversion
- php_ini_loaded_file
- php_ini_scanned_files
- php_strip_whitespace
- pi
- popen
- pos
- pow
- preg_grep
- preg_quote
- prev
- printf
- print_r
- property_exists
- putenv
- quoted_printable_decode
- quoted_printable_encode
- quotemeta
- rad2deg
- rand
- range
- rawurldecode
- rawurlencode
- readfile
- realpath
- register_shutdown_function
- require
- require_once
- reset
- restore_exception_handler
- restore_include_path
- rewind
- round
- rsort
- rtrim
- runkit_class_adopt
- runkit_class_emancipate
- runkit_function_add
- runkit_function_copy
- runkit_function_redefine
- runkit_function_remove
- runkit_function_rename
- runkit_import
- runkit_method_add
- runkit_method_copy
- runkit_method_redefine
- runkit_method_remove
- runkit_method_rename
- runkit_superglobals
- serialize
- setcookie
- setlocale
- setrawcookie
- settype
- set_exception_handler
- set_include_path
- set_time_limit
- sha1
- sha1_file
- shuffle
- sinh
- sin
- sizeof
- sleep
- sort
- soundex
- split
- sprintf
- sql_regcase
- sqrt
- strcasecmp
- strchr
- strcmp
- strcoll
- strcspn
- stream_context_create
- stream_context_get_default
- stream_context_get_options
- stream_context_get_params
- stream_context_set_default
- stream_context_set_option
- stream_context_set_params
- stream_get_contents
- stream_get_line
- stream_is_local
- strftime
- stripos
- stripslashes
- strip_tags
- stristr
- strlen
- strnatcasecmp
- strnatcmp
- strncasecmp
- strncmp
- strpbrk
- strpos
- strrchr
- strrev
- strripos
- strrpos
- strspn
- strstr
- strtok
- strtolower
- strtotime
- strtoupper
- strtr
- strval
- str_getcsv
- str_ireplace
- str_pad
- str_repeat
- str_replace
- str_rot13
- str_shuffle
- str_split
- str_word_count
- substr
- substr_compare
- substr_count
- substr_replace
- tanh
- tan
- timezone_abbreviations_list
- timezone_identifiers_list
- time
- time_nanosleep
- time_sleep_until
- trigger_error
- trim
- uasort
- ucfirst
- ucwords
- uksort
- uniqid
- unserialize
- urldecode
- urlencode
- user_error
- usleep
- usort
- utf8_decode
- utf8_encode
- var_dump
- var_export
- version_compare
- vprintf
- vsprintf
- wordwrap
PHP to Javascript Project: php.js
This article is part of the 'Porting PHP to Javascript' Project, which aims to decrease the gap between developing for PHP & Javascript.
A lot of people are familiar with PHP's functions, and though Javascript functions are often quite similar, some functions may be missing or addressed differently. The Javascript implementations should be as compliant with the PHP versions as possible, a good indication is that the PHP function manual could also apply to the Javascript version.
Porting crucial PHP functions to Javascript can be fun & useful. Currently some PHP functions have been added, but readers are encouraged to contribute and improve functions by adding comments. Eventually the goal is to save all the functions in one php.js file and make it publicly available for your coding pleasure.
If you choose to contribute, let me know how you want to be credited in the function's comments. You may also want to subscribe to RSS so you receive updates whenever new functions are posted.
Licensing
Since the project is really kicking off and we're almost at 100 ported functions, I thought it was probably time to think about licensing. So I did a little bit of research, and I think the MIT license might be what we're looking for.
In short, it permits reuse within proprietary software on the condition that the license is distributed with that software. It's also GPL-compatible, meaning that the GPL permits combination and redistribution with software that uses the MIT License.
The license
This is what I've come up with so far:
/*
* More info at: http://kevin.vanzonneveld.net/techblog/category/php2js
*
* php.js is copyright 2008 Kevin van Zonneveld.
*
* Portions copyright Ates Goral (http://magnetiq.com), Legaev Andrey,
* _argos, Jonas Raoni Soares Silva (http://www.jsfromhell.com),
* Webtoolkit.info (http://www.webtoolkit.info/), Carlos R. L. Rodrigues, Ash
* Searle (http://hexmen.com/blog/), Tyler Akins (http://rumkin.com), mdsjack
* (http://www.mdsjack.bo.it), Alexander Ermolaev
* (http://snippets.dzone.com/user/AlexanderErmolaev), Andrea Giammarchi
* (http://webreflection.blogspot.com), Bayron Guevara, Cord, David, Karol
* Kowalski, Leslie Hoare, Lincoln Ramsay, Mick@el, Nick Callen, Peter-Paul
* Koch (http://www.quirksmode.org/js/beat.html), Philippe Baumann, Steve
* Clay, booeyOH
*
* Licensed under the MIT (MIT-LICENSE.txt) license.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL KEVIN VAN ZONNEVELD BE LIABLE FOR ANY CLAIM, DAMAGES
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
The "Portions copyright" section is updated autmatically as we update the source files.
Got ideas?
If any of you have different ideas about this license, please let me know, because this is an initial draft.
New to php.js ?
If you're new to php.js, checkout an example. We are not trying to port or emulate the entire language or control structures of PHP. We don't see the need because Javascript seems to have more elegant features in that category anyway.
However in our eyes, PHP does provide a large set of standard functions that make developing very easy, and some of them don't have good standard Javascript implementations, though they often would be great to have client-side.
So in this project by also providing the functions separately, we hope to keep people from inventing the wheel and give them a head start.
Stay up to date
You can track my blog
articles and
comments. You may also find my
bookmarks interesting. Or
Follow me on Twitter
Like this article?
|
Then Dzone it! Or use another bookmark button below to show your support & help me spread the word. |
RelatedArticles like this one» PHP.JS Namespaced |
tags: programming, javascript, php, phpjs
category: Programming - Javascript - PHP equivalents
read: 55,318 times
Add Comment
PHP.JS is outgroing this blog and moving to it's own space. Please leave your comment here: http://phpjs.org







tagcloud
#82. Kevin on 16 March 2009
Thanks a lot!!
#81. Kevin on 16 March 2009
Thanks a lot!!
#80. bit on 08 March 2009
But I don't get why you even need a license. if you goal is to be truely free, you can release the code into public domain. You should look into it.
#79. bhu vidya on 08 March 2009
#78. Erik Pöhler on 05 March 2009
#77. Brett Zamir on 03 March 2009
1) the debugging alert() for reg was still there
2) var assArr = []; should probably be var assArr = {}; since we're trying objects as associative arrays
3) the reg.test() check should be preceded by "reg &&" in case that condition is reached but there was no charlist parameter
... [more]
I was also unclear on whether the PHP example, when translated to JavaScript should have an \n and/or \r added. If both are added the associative array is numbered correctly.
#76. Kevin on 02 March 2009
http://trac.plutonia.nl/projects/phpjs/browser/trunk/_experimental/strings
So others can improve upon them until they work perfectly!
#75. Ole Vrijenhoek on 25 February 2009
#74. Ole on 25 February 2009
#73. Kevin on 25 February 2009
http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_strtotime/
..again
#72. Kevin on 25 February 2009
#71. Ole Vrijenhoek on 22 February 2009
The uuencode function I sent doesn't work good.
Looks like I tested it too little.
The word "Cat" gives the expected "0V%T" but "Hello world!" returns a wrong string.
... [more] I am sorry for this but I hope you can do something with my old function ;)
#70. Ole Vrijenhoek on 22 February 2009
[CODE="Javascript"]
// Author: Ole Vrijenhoek
function convert_uuencode(data) {
var c = "";
var a = 0;
var newStr = "";
for(var i=0;i
#69. ChaosNo1 on 15 February 2009
#68. Kevin on 15 February 2009
http://trac.phpjs.org/projects/phpjs/browser/trunk/functions/datetime/timezone_abbreviations_list.js
The php.min.js package as a whole, is build from these separate functions. I haven't done that yet because I'm in the middle of rewriting compiler parts for www.phpjs.org and I could destroy things now ;)
#67. ChaosNo1 on 15 February 2009
I tried it with the svn version, but there are still the same problems.
#66. Kevin on 15 February 2009
Basically, Date.parse (an internal JS function) is called. If that can't handle it properly, the function goes on with our specific code.
So right now it looks like it isn't even an PHP.JS problem. But I've contacted the original author Caio Ariede. Maybe he's willing to look into it a bit deeper than I can right now.
#65. Kevin on 15 February 2009
#64. ChaosNo1 on 13 February 2009
When i open a page where the js is included in ie7 an error occours: (translatet from german)
Runtime Error
Line 426
Error:
variable, string or number expected
I try to use serialize in context with sajax like this:
in FF still works fine, but IE has also problems here: Object expected
i have removed the serialize and ie did not longer show this error message (but still the first one when reloading the page)
#63. David on 12 February 2009
#62. Kevin on 11 February 2009
@ raul montejano rodriguez: Would it be possible for you to give us more detail on the error?
#61. raul montejano rodriguez on 09 February 2009
#60. Jonathan Sampson on 06 February 2009
After checking my application in IE7, I received the following error:
Line: 821
... [more] Char: 330
Error: Expected ']' in regular expression
This was tracked down to be originating from php.min.js. I have since removed reference to the full source-file, and instead replaced it with exclusive definitions of the needed functions.
Again, no errors in other browsers I tested, but IE7 certainly doesn't handle a particular bug in the .js file too well.
Thank you for the excellent work on this project.
Jonathan Sampson
#59. Kevin on 01 February 2009
@ Jalal Berrami: Thanks for your code, we can put it to good use!
#58. Brett Zamir on 31 January 2009
Some useful code, Jalal.
Although I don't know if you're keen to include global non-function code like Jalal submitted, Kevin, I think it could be pretty cool to have it in the namespaced version at least (attaching them at the end of the closure to the window object, so they wouldn't introduce globals besides the natural ones).
But even if you are only sticking with functions, Jalal's code came in handy with this PHP (var-related) function (and which is more secure anyways, potentially even in JavaScript)--a PHP function which lets you choose whether to import GET and COOKIE (or POST if we could support that) and then give an optional prefix to all such variables when they are imported: http://php.net/import_request_variables
#57. Jalal Berrami on 31 January 2009
#56. Kevin on 25 January 2009
Anyway: everything is updated automatically but it could be that phpjs is one version behind, so either keep using the blog a little while longer, or pull your sources straight from svn.
#55. Mike on 23 January 2009
* phpjs.org
* kevin.vanzonneveld.net
* trac.phpjs.org/projects/phpjs/
... [more]
Where can I download the latest code and where can I see the versioning?
If I download from the first and last the version is 2.09 and when I download from the second the version is 2.10 but the thing is that phpjs.org looks like the base of the code, isn't it?
I'll download from this site because it looks like the newest version.
This is very good work, if there is any way of merging or extending jQuery for example would be great too...
#54. Kevin on 15 January 2009
- You are stretching the limits of what browsers were designed to do.
- Binary safe sha1: The current implementation is by webtoolkit.info, I haven't tested it with binary files.
... [more] All of the JavaScript sha1 algorithms I've found so far mention that they are aimed at hashing text messages. Maybe I haven't look good enough.
Unfortunately writing this myself would take me forever (I'd have to study mathematics again first).
- Different values for PHP vs JavaScript: I take it you mean even with normal string input? That surprises me a bit. What if your run the example we provide? If that works, please provide the test string that doesn't work (if it's not too long that is)
#53. Ben on 15 January 2009
I'm trying to get the sha1_file function to work properly for binary files though. I'm getting different SHA1 values for PHP versus Javascript. Also, large files containing a few MBs seem to crash the browser.
I'm hoping to leverage this functionality in an Adobe AIR application. Any ideas on how I can get this to work?
#52. Kevin on 14 January 2009
http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_json_encode/
and
... [more]
http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_json_decode/
They're still a bit rough, but the basics are there and I'm sure they will evolve to become nice additions to our project.
#51. Kevin on 12 January 2009
- depends on an outside function: applyEncode
issue already! Still leaves the other ones open unfortunately. For completeness I will paste:
- does not support associative arrays (in terms of traversing)
- does not support index arrays, numbers, etc (in terms of encoding)
... [more]
Please have a look here:
http://www.json.org/json2.js
The code is public domain, so maybe it's possible to modify it and use it in PHP.JS. We could look into that!
#50. Nile on 09 January 2009
#49. Kevin on 30 December 2008
#48. Caio Ariede on 26 December 2008
I made a strtotime function in Javascript.
Don't know if it is of interest to your project, because it don't works exactly as the PHP function, but with some improvements can come close.
... [more]
Can found it in my blog, here:
http://caioariede.com/2008/javascript-equivalent-function-to-phps-strtotime
cya! :)
#47. Kevin on 17 December 2008
Maybe if you could work on a jQuery user interface that works with JSON. I can write the CakePHP part that supplies the JSON and the compiler part that glues the functions together and stores them as packages.
I imagine the jQuery part as a big form, with some presets in a select box in the top.
And checkboxes for every function, grouped by category.
When a function is selected (either automatically by a default, preset, or user), it's dependencies should be selected as well. This should recursively fire an onSelect function so that their dependencies in turn are also selected (e.g. md5_file requires md5 requires utf8_encode, so clicking md5_file recursively selects 2 additional functions)
So the JSON object provided (either by default or the one linked to a preset), and returned could probably be in this simple form:
I thing a separate JSON Object should be made available with all the function's definitions:
Furthermore there needs to be some kind of feedback div that will explain what is happening:
'Also selected file_get_contents as a dependency for md5_file'
'Also selected md5 as a dependency for md5_file'
'Also selected utf8_encode as a dependency for md5'
I will make sure on the server end that only unique packages (same functions) will be stored.
This way we can determine what are popular configuration, and offer them as additional presets, and maybe even give them a place in the download page.
Any thoughts?
#46. Pedro Sland on 11 December 2008
I've never done anything with cakephp but my php is quite good.
I have been using jquery for some time now and I'm not bad. Just developing my first propper plugin.
... [more] I have a reasonable oop php framework that I built. Its not like the zend monster but its ample and flexible :)
#45. Kevin on 10 December 2008
- cakephp
- jquery
- OOP
skills? Cause there already is a lot of code ready that's based on these techniques. Let me know!
#44. Pedro Sland on 09 December 2008
#43. rune_kg on 05 November 2008
Just wanted to say thx. Working on a PHP to js converter (just for fun, nothing fancy), and your great tool came in very handy providing support for many of PHP's inbuilt functions. Come and join me at:
http://code.google.com/p/php-to-js/
... [more]
Rune
#42. Kevin on 03 November 2008
#41. Martin Barker (Barkermn01) on 29 October 2008
Sorry Left Some Comment Code in
#40. Martin Barker (Barkermn01) on 29 October 2008
This script will work to include .js files into your code so if there is a set of scripts you dont need unless some thing is active this would be grate
#39. Kevin on 20 October 2008
So that means the compiler should have routines to do it automatically. A lot of effort, for little gain if you ask me.
If we still want this function, I prefer echoing a link to the http://phpjs.org site (and maybe the authors page).
PS
... [more] I fixed some issues with the tester, which caused some additional bugs to surface.
Also I found (like onno mentioned before) that indeed a lot of array functions do not support associative arrays (javascript objects). But because the examples don't use them either, we don't see them all.
#38. Onno Marsman on 18 October 2008
Well, as long it's something that's not in the standard library it's ok by me (not that I have any final saying in this of course), but I guess we don't have a place (yet?) to put something like this then.
#37. Philip Peterson on 18 October 2008
- Correct, if I were to decide the fate of the function, I would include it at best as an optional and not-included-by-default function on the Compile page. The images are there just for fun; they can easily be done without.
- Correct again, but a lot of functions on here are not exact PHP equivalents; they merely replicate the functionality of the original PHP function, with relevance modified as needed. Actual PHP credits here are irrelevant, but PHP.JS credits are.
- It's just a suggestion.
... [more] - No, we don't; but it is a PHP function and the goal of this project (I believe; I guess it's not really explicitly stated anywhere) is to port to Javascript as many PHP functions as possible which will produce functionality as useful as the original function in PHP, and this I believe fits those descriptions. I wouldn't say it's "polluting" -- without the images it's a mere 8 to twelve lines or less, and probably could be shortened even more, and it definitely would not be polluting if it is by choice only.
- Right, which is why the images are unnecessary.
I'm not necessarily in support of using this function, but those are the reasons I posted it. I don't really see much reason [i]not[/i] to use it if it is entirely optional, but again I am just throwing it out there.
#36. Onno Marsman on 18 October 2008
- It's not useful at all and it takes al lot of space, even after compressing. It would be the first function I'd remove after downloading the library.
- It's not a PHP equivalent. PHP's phpcredits has very different output.
- It doesn't make sense to put the credits for phpjs in a function called phpcredits.
- Do we (the contributors) really need more credits than we are already getting and pollute the library like this?
... [more] - You yourself (philip) have mentioned some good reasons not to implement functions like this at the comments on the sleep-function page (like storing those images)
#35. Philip Peterson on 18 October 2008
#34. Kevin on 01 October 2008
#33. Jack on 29 September 2008
For example,
which can easily be fixed to
The lack in efficiency gets especially noticeable when called by loops such as building large dynamic HTML tables and such.
I believe countless redundant computations and unnecessary strain on our user's machine can be avoided if we just fix this simple problem.
Below is a list of functions that is currently violating this rule of efficiency.
compact ( var_names )
max()
min()
count_chars( str, mode )
htmlentities( string )
md5 ( str )
sha1 ( str )
sprintf( )
utf8_encode ( string )
parse_str(str, array)
soundex( str )
str_ireplace ( search, replace, subject )
strnatcmp ( f_string1, f_string2, f_version )
#32. Kevin on 17 September 2008
#31. LH on 15 September 2008
you have to comment this line, if you don't want a print window opened
#30. Kevin on 13 September 2008
#29. Sold Out Activist on 10 September 2008
You should split the files into modules JS files akin to how PHP has modules. Then make php.js a type of php.ini where the user can decide which of the modules they want to use.
When php.js is called it would dynamically add the js files using the DOM and life would be sweet.
#28. Kevin on 27 August 2008
#27. KAGRAN22 on 16 August 2008
special explode/implode & the other array manipulation functions make it more n more wrothfull every day
the only somewhat "useless" function is imho strlen.
The JS length Property is a benefit vs php
... [more]
Makes code more readable + uses less RAM/Time then using php.js equivalent (anyway micro-optimization)
know the deal is to port them ;-)
conclusio Great work!
Also looking forward to a dedicated domain
as this Blog is somewhat messy to browse + same for Source file
(maybe you can even use php.net's Interface its ugly but functional) ^_^
#26. Kevin on 22 July 2008
#25. Johnny Mast on 20 July 2008
#24. Kevin on 18 July 2008
#23. GeekFG on 01 July 2008
My website is : http://geekfg.blogspot.com/ You can contact me via this page : http://domainfinder.geekfg.net/contact
#22. GeekFG on 01 July 2008
My website is : http://geekfg.blogspot.com/
You can contact me via this page : http://domainfinder.geekfg.net/contact
#21. GeekFG on 01 July 2008
My website is : http://geekfg.blogspot.com/
You can contact me via this page : http://domainfinder.geekfg.net/contact
#20. Kevin on 23 May 2008
This is related to the generation of documentation & testing. It still is good to have as a reference here, though. So thanks! And if you have another function, please let us know!
#19. Dan Doezema on 23 May 2008
E-Mail
str_replace(array('[',']'),'','[d][a][n][at][authenticdesign][.][net]');
I know this is a global array but I think this has some use in your library. I made this a few days ago and I would like to contribute.
It's a port of the $_GET global array.
#18. Kevin on 15 May 2008
#17. Sakimori on 15 May 2008
Seriously, thanks so much for the work you've done here. I'm so happy to have found this that I'm almost in tears.
#16. is_array on 07 May 2008
#15. Shane on 06 May 2008
#14. Kevin on 28 April 2008
#13. Ozh on 28 April 2008
I have a proposal for dirname() :
#12. Kevin on 21 April 2008
Thanks for sharing & taking an interest in our project!
#11. PhenX on 21 April 2008
http://www.ohloh.net/projects/php-js
We hope it will help :)
It would be nice to have a page completely dedicated to news and file downloads to be easier to find what we want. For now, it's hard to navigate into a blog for such a project
#10. Felix Geisendörfer on 06 April 2008
I'm currently working on a book called "JavaScript for PHP developers" and I see a lot of overlap between the work I'm doing and your efforts here.
So I'd love to have a little chat about how I may be able to help with your project. Contact me on felix@debuggable.com or any of the instant messagers listed here: debuggable.com/felix
... [more]
Thanks for the great work so far.
-- Felix
#9. Kevin on 20 March 2008
It should have auto-dependency resolving, optional packing or minifying, etc.
About your question, I'm in the midst of moving php.js to SVN, after that, the master file will have versioning as well. Currently only the separate function files have versions.
#8. Tim on 19 March 2008
I built a little script to make adding just parts of this great library available for download (packed with Dean Edwards packer). You can check it out at http://sitebytim.com/code/php_equivalents/ - FYI it's pretty rough at the moment so I hope to clean it up a little bit but it does the trick for what I need.
Just curious - if the individual files that have a single function (linked too from your testing page) are the same version as the functions included in the master php.js file?
#7. Kevin on 07 February 2008
#6. Jean-Lou Dupont on 06 February 2008
#5. Kevin on 04 February 2008
And though he already has made plans for www.phpjs.com to create a blog about working with symfony and dojo on web applications, I received a nice mail that he will still consider the transfer if he doesn't have enough time to kickstart that project.
We will be hearing from him next month.
#4. Kevin on 01 February 2008
Unfortunately my whois tells me there is no .js TLD.
I don't think PHP would appreciate a www.php.js domainname either ;)
#3. Kevin on 01 February 2008
Whereas MIT is cool with it if you incorporate & change php.js in your own app without ever exposing your improvements to the public.
But obviously, that does provide greater freedom.
#2. Karol Kowalski on 01 February 2008
#1. Legaev Andrey on 01 February 2008