Web lists-archives.com

[PHP] announcing public release of jsonViewer and saJSON




i'm gonna re-opensource these in the future anyhow for that update to the
PHP error handling, so i thought it would be nice to release what i got now
(should work, may need a tiny bit of work by you)..

perhaps *you* can include it in the following package{3}? nice challenge
perhaps..? :)

https://github.com/seductiveapps/webappObfuscator/blob/master/
webappObfuscator-1.0.0/functions__basicErrorHandling.php
https://github.com/seductiveapps/webappObfuscator/blob/master/
webappObfuscator-1.0.0/1.0.0/functions.php
https://github.com/seductiveapps/webappObfuscator/blob/master/
webappObfuscator-1.0.0/functions__internalErrorHandling.php
light background css : https://github.com/seductiveapps/
webappObfuscator/blob/master/webappObfuscator-1.0.0/
webappObfuscator-1.0.0__ajax.css
dark background css : https://github.com/seductiveapps/
webappObfuscator/blob/master/webappObfuscator-1.0.0/
webappObfuscator-1.0.0.css


jsonViewer provides :
- a pure-PHP encoder for JSON that can handle JSON in the range of at least
100MB to maybe 1GB or more (provided you provide enough RAM ofcourse)
- JS that outputs HTML that actually can view such large arrays, tested
with sample JSON file[1] of 100MB in 2013
- runs in all browsers, smartphones iPhone6+ and Android 4.2+ too
- initially fully-collapsed view of your data showing just the root keys
- ability to open keys by clicking on them, or up to the required depth
(opening-links for all up to the max depth too)
- pretty colors, auto-generated from easy templates (
https://github.com/seductiveapps/saColorGradients)
- a bunch of other convenient and if i may say so myself, technically
impressive features

URLs

https://github.com/seductiveapps/jsonViewer
which requires
  https://github.com/seductiveapps/saColorGradients
and
  https://github.com/seductiveapps/saJSON

NOTES

see also my feature request to internals@xxxxxxxxxxxxx, included here:

from my master todo file at
https://github.com/seductiveapps/folderDB/blob/master/todo.platform.txt ;
{3}
---------- Forwarded message ----------
From: Rene Veerman <rene.veerman.netherlands@xxxxxxxxx>
Date: Sun, Aug 28, 2016 at 5:07 AM
Subject: feature-request : html + css logging in apache logs (example for
the rest of the unix community too)
To: php-general@xxxxxxxxxxxxx, internals@xxxxxxxxxxxxx


Hi.

Once again, thanks for keeping PHP free to use and so widely and easily
installed..

I have another feature request (sent earlier tonight)..

I quite often, much more than i like, *need* a stacktrace and *proper*
variable listings for each function called in PHP when it barfs out nothing
more than an apache error log entry..
And can we please show such entries in the browser *as well as the apache
log*? Or if nothing else, *just* in the browser?

Rather than going "all the way" and making variable contents (which can
grow quite large) collapsable and shit *right away*, you could simply add
the right <span> and <p> class="" names and supply a CSS file. I use it in
all error handling that does make it to set_error_handler(myHandler), and
that really is what makes things like my obfuscator (also posted about to
the php-general@xxxxxxxxxxxxx earlier tonight) possible.
And taking things that far allows guys like me to provide you with a
collapsable large-JSON-decoding viewer addon for such logfiles later (rest
assured that that'll get done once you do this for me).. i call it
jsonViewer and i should have it back up at
http://seductiveapps.com/tools/json (or /jsonViewer) once the obfuscator is
fully done in a few weeks, at most..

if you want me to build (and opensource) things like that true-obfuscator
and my JSON scalable database architecture using just apache2+ and php5+,
it would really cut my development time in more than half if you could add
"all of this" (it's deadsimple and a few hours work imo) to the next
versions of PHP (and please make it the default, you can include sample CSS
or read in a CSS file that you set in php.ini (comment on how to do this in
the logfile html please))..

see https://github.com/seductiveapps/folderDB/blob/master/todo.platform.txt
for all relevant updates concerning these developments mentioned here..

Thanks in advance for considering and likely adopting the 2 small changes i
need in the next versions of PHP.. I run ubuntu btw.. I'll be checking the
php.net pages for your future updates..

If anyone can gimme a duration-to-completion for each of my requests of
tonight, that'd be awesome. I'll take a "wild guess", or any serious
objections that i might be able to sway out of the way..