php-ref
php-ref copied to clipboard
"Implements", "Properties" and "Methods"
I love this project but have one concern
Would it be possible add a parameter to r() to show only object values as (var_dump but coloured) without annoying methods and implements variables only?
Let say, r() will return me only "Implements", "Properties" and "Methods" lists but var_dump return actual data.
Example of useless r() output
$message/media/DriveD/www/complex/test2.php:47XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object(ImplementsCountable (1), Iterator (5), RecursiveIterator (7), Traversable (0)Properties->xml_ns=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->xml_ns_url=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->encoded=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->Body=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->MD5OfBody=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->ReceiptHandle=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()->MessageId=XSimpleXMLElement :: XSimpleXMLIterator :: XCFSimpleXML object()Methods->__call($name, $arguments)->__toString()::init($data, $options, $data_is_url, $ns, $is_prefix = false)->query($expr)->parent($node = null)->to_string()->to_array()->to_stdClass()->to_json()->to_yaml()->is($value)->contains($value)->matches($pattern)->starts_with($value)->ends_with($value)->rewind()->valid()->current()->key()->next()->hasChildren()->getChildren()->F__construct($data, $options = null, $data_is_url = null, $ns = null, $is_prefix = null)->asXML($filename = null)->saveXML($filename = null)->xpath($path)->registerXPathNamespace($prefix, $ns)->attributes($ns = null, $is_prefix = null)->children($ns = null, $is_prefix = null)->getNamespaces($recursve = null)->getDocNamespaces($recursve = null)->getName()->addChild($name, $value = null, $ns = null)->addAttribute($name, $value = null, $ns = null)->count())
thanks!
There is a config option that lets you disable methods, ref::config('showMethods', false);