I believe that a lot of users with Windows system have a habit, that is, when we work with the computer, will always go to the right mouse button to refresh the system. A friend with obsessive-compulsive disorder will brush the last 10 times in a row, psychologically thinking that the computer will be faster. This refreshing process is actually used to update the display information for the current data. In fact, Windows can automatically refresh itself, allowing the new settings to take effect,
method returns the requested URI. Therefore, if the requested path is http://domain.com/foo/bar, the path method returns foo/bar: $uri=$request->path(); The is method allows you to verify whether the incoming request matches the given pattern. You can use the * wildcard when using this method: if($request->is('admin/*')){ //} To obtain the complete URL, not just the path information, you can call the url or fullUrl method of the request instance: // Without the request paramet
class file name is name.class.php or class-name.php
Reply content:
class file name is name.class.php or class-name.php
Share Links:Https://github.com/php-fig/fig-standa ...Hope to help you.
Upstairs has already given the answer, I slightly add:
Php-fig has several style standards, namely: Psr-0,psr-1,psr-2 and PSR
passed by the DSRs:0: automatic loading (mainly for versions without namespaces before PHP 5.3)1: Coding Specification2: recommended encoding styles3: Log results4: automatic loading is more refined (there is a big change in the namespace)7: HTTP Message InterfaceCurrently in drafting (Draft) there are PSR-5 (PHPDoc Standard), PSR-6 (Cache) and so on. 5 and 6 are not displayed in the above list because the
Specification for PHPPSR-3 log interfaces
Log interface specificationThis article develops a general interface specification for the log class library.The main purpose of this specification is to allow the Log class library to record the Log information in a simple and common way by receiving a Psr \ Log \ LoggerInterface object.If necessary,YesThis API is extended, but this specification must be followed,This ensures that the log interface c
Ismethod method to verify that the HTTP request matches the given string:
$method = $request->method ();if ($request->ismethod (' post ')) {//}
1.2 PSR-7 Request
The PSR-7 standard specifies the HTTP message interface, including requests and responses. If you want to get a PSR-7 request instance, you first need to install some libraries, lumen use the Symfony
entered is Http://domain.com/foo/bar, the path method will return Foo/bar: $uri = $request->path (); The Is method allows you to verify that the incoming request matches the given pattern. You can use the * wildcard character when using this method: if ($request->is (' admin/* ')) { //} To get the full URL, not just the path information, you can call the URL of the request instance or the FullUrl method: Without request parameter $url= $request->url ();//with request parameter
, let's take a rough look at its structure:Composer structure
Composer command line tool:This is easy to understand. download the code you need through the user-defined Composer. json. if you simply use Composer, you can master some specific commands.
Autoloading code loader:Through Composer, developers can use in a variety of ways, and the key lies in the concept of PHP namespace, and the development of PSR-4 standards, Composer only according to
= $request->method (), if ($request->ismethod (' post ')) { //}PSR-7 RequestThe PSR-7 standard specifies the HTTP message interface, including requests and responses. If you want to get a PSR-7 request instance, first you need to install some libraries, Laravel use the Symfony HTTP Message Bridge component to translate the typical Laravel request and respons
http://domain.com/foo/bar, pathpattern will return foo/bar: $uri = $request->path(); The is method allows you to verify whether the requested URI matches the provided mode. You can use the * character as the wildcard: if ($request->is('admin/*')) { //} If you want to obtain the full path of the request, you can use the url or fullUrl method: // Without Query String...$url = $request->url();// With Query String...$url = $request->fullUrl(); You can also append the request's paramete
automated. You can avoid Java set/get garbage useless code. Yii author Mr. Manggold J, programming small white. You have written C + + (named style) +java. This is so much rubbish useless code, life needs to cherish time.
In the middle of the night, to rest.
Life needs to cherish time. I spend so much time just to tell you the truth. Do not use Yii as a rubbish frame. If you don't have a frame, you can use thinkphp3.1.,3.2, but thinkphp3.2 is a serious problem in liunx deployment. I have deve
Initrd/initramfs-3.2.84.img
Note: isolcups must be followed by root and cannot be placed at the end (for personal testing, the specific reasons need to be identified)
(2) check whether the isolation is successful:
[[Email protected] ~] # Ps-elo psr, argS | awk '{if ($1 = 3) Print $0 }'
3 [kworker/u: 0]
3 [migration/3]
3 [kworker/3:0]
3 [ksoftirqd/3]
3 [watchdog/3]
3 [kworker/3:1]
3 auditd
3 rpcbind
[Flush-253: 0]
3/usr/sbin/modem-Manager
3 Hald-runn
is Http://domain.com/foo/bar, the path method returns Foo/bar: $uri = $request->path (); The Is method allows you to verify that the requested URI matches the provided pattern. You can use the * character as a wildcard character: if ($request->is (' admin/* ')) { //} If you want the full path of the request, you can use the URL or the FullUrl method: Without query string ... $url = $request->url ();//With Query string ... $url = $request->fullurl (); You can also append the request
failure to copy the next 16 lines, up to 16 cycles.Small Mode property sheet:xmub{//256H + 3 W.bu64k XMUWT; Small mode manages bitmap variables; 256H.BU1W MAXLX1; The maximum number of bits in a bitmap variable that is 1 consecutive and the line number to which the starting bit number belongs.BU1W Ksxyu; The number of idle units managed by the bitmap variable.BU1W Uijiu; The actual number of units in the bitmap variable management.}Allocation: The number of consecutive units or digits of the ap
Lina, ancient German, the meaning of "gender.
AllisonGael, tiny, authentic; ancient German, famous gods. reminiscent of beautiful and flawless women, smart, considerate.
Angelia(Greece) "Angel, the sender." Angelia is depicted as beautiful. If a petite woman does not have a sweet and gentle character, She is a lively and reckless girl.
Amanda(Latin name) the root of the word represents love. Amanda represents a lovely person. People think she is beautiful,
standard does not result in errors or bugs, it is important to follow certain coding standards.
There are a lot of problems with your project without a unified coding standard. The most obvious is that your project code is not consistent. The worse part is that your code will be more difficult to debug, extend, and maintain. This also means that your team will be less efficient, including doing a lot of meaningless work.
For PHP developers, it's a bit of a lucky one. Because of the PHP coding s
most obvious thing is that your project code is not consistent. Worse, your code will be more difficult to debug, expand, and maintain. This means that your team's efficiency will be reduced, including a lot of meaningless work.
PHP developers are lucky. Because of the recommended PHP coding standard (PSR), it consists of the following five parts:
PSR-0: automatic loading standard
I would like to share with you some of my own experience in development, this time about code specifications.
What is code specification
The code specification that I understand is a standard that lets people who write code develop according to this standard.
For example PHP PSR1 (https://www.php-fig.org/psr/psr-1/) and PSR2 (https://www.php-fig.org/psr/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.