Comments (7)
Give me please some example :)
from php-console.
$dispatcher = $connector->getDebugDispatcher();
$dispatcher->setFormatter('table');
$data = $db->query('SELECT * FROM table')->fetchAll();
// Take column headers from object/array properties.
$dispatcher->dispatchDebug($data, 'Big table with all available columns');
// Specifiy column headers directly.
$dispatcher->setTableHeaders(['Header 1', 'Header 2', 'Header 3']);
$dispatcher->dispatchDebug($data, 'Simple three-column table');
// Add row numbers.
$dispatcher->setTableRowNumbers(TRUE);
$dispatcher->dispatchDebug($data, 'The same table with row numbers column');
from php-console.
Oh noo, it's too complicated to get used :) I think I will just add some options on client like:
Table-tags.
[x] sql
[x] db
[ ] some
[ ] other
So when there will be sql & db tags in message, it will be grouped to a table with field sql, db.
from php-console.
I think, some facade shortcut like PC::table(array | Traversable $data, [array $headers])
will be very handy.
from php-console.
@velosipedist Good idea, thank you! I think I'll implement it soon.
from php-console.
Perhaps we could use signature of native chrome console.table function as ChromePHP extension does.
from php-console.
@barbushin Hi. Any progress on this? It would be very handy. I am using console.table() a lot to output Objects/Json when debugging JS. Having option to output PHP arrays (and possibly JSON) as table would be very handy.
from php-console.
Related Issues (20)
- Not working on Localhost.
- Привет русскоговорящим. Есть предложение.
- live demo site is not work - ERR_NAME_NOT_RESOLVED HOT 1
- Recently running >100% cpu HOT 2
- Firefox support
- Chrome keeps refreshing the page when open an ipv6 address site HOT 8
- PC::debug() not working locally with latest Chrome HOT 2
- php7.4RC3 with enable opcache fpm crash HOT 2
- Option to disable output via server side config
- Third party integration: standalone php-console build doesn't work on Wordpress HOT 1
- php7.4 with enable opcache fpm crash
- Extension not working as expected
- output buffering never ends
- chrome is crashed when I click "jump to file" when php error
- Warning: Private methods cannot be final as they are never overridden by other classes on php8-beta4
- Chrome extension no longer available in the Chrome web store HOT 14
- request php8 support
- Chrome just told me this extension is malware HOT 7
- Error: Required parameter $args follows optional parameter $key
- https://chrome.google.com WP PHP Console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-console.