In general, we use third-party extensions during the development of PHP, which is especially important when we look at the information about PHP extensions. In general, we look at the extension information, are directly through the cat *.ini file, so the efficiency is very low, because sometimes you will not know the INI file under what path, although the search is easy to find, but overall is still troublesome.
So we need to look at the extended information as quickly as we can?
Of course, the php--ri command line is used.
Take query Seaslog as an example:
[email protected]:/tmp# php--ri seaslogseaslogseaslog support = Enabledseaslog Version = 1.8.5SeasLog Author = Chitao.gao [[email protected]]seaslog Supports = https://github.com/SeasX/SeasLogDirective = > Local Value = Master Valueseaslog.default_basepath =/home/www/log/seaslog-test =/home/www/log/ Seaslog-testseaslog.default_logger = default = Defaultseaslog.default_datetime_format = Y:m:d H:i:s = Y : m:d h:i:sseaslog.default_template =%T | %l | %P | %Q | %t | %M =%T | %l | %P | %Q | %t | %mseaslog.disting_folder = on = Onseaslog.disting_type = off = Offseaslog.disting_by_hour = off = Offseaslog.use_buffer = on = Onseaslog.buffer_size = + 100seaslog.buffer_disabled_in_cli = Off =& Gt Offseaslog.trace_notice = off = offseaslog.trace_warning = off = Offseaslog.trace_error = on = Ons Easlog.trace_exception = on = Onseaslog.level = 8 => 8seaslog.recall_depth = 0 = 0seaslog.appender = 1 = 1seaslog.appender_retry = 0 = 0seaslog.remote_ Host = 127.0.0.1 = 127.0.0.1seaslog.remote_port = 514 = 514seaslog.remote_timeout = 1 = 1seaslog.t Rim_wrap = Off = Offseaslog.throw_exception = on = Onseaslog.ignore_warning = on = On
Can see the information is very rich, this way, later on the extension of the information query or the effective situation to quickly review.
PHP command line View extended information