Introduction to PHP Reflection API

Hi, Habr! I present to your attention the translation of the article " Introduction to PHP Reflection API " By Mustafa Magdi .
 
 
How in PHP to analyze data structure 3r3133.
 
Introduction to PHP Reflection API
 
 
3r33333. Entry
 
When I started programming in PHP, I didn’t know about the possibilities of 3r33360. Reflection API [/b] . The main reason is that I did not need to design my simple classes, modules, or even packages. Then I discovered that it plays a major role in many areas. In the article, we will look at Reflection API under the following points:
 
 
 
3r33352. What is [b] Reflection ...
+ 0 -

PHP Digest number 145 (November 26 - December 1? 2018)

 
3r3-31.
PHP Digest number 145 (November 26 - December 1? 2018)
3r3638.  
Fresh selection with links to news and materials. In the release: PHP 7.3.? Symfony 4.? Composer ??? and other releases, end of support for PHP 5.6 and PHP 7.? fresh offers from PHP Internals, a portion of useful tools, video reports and much more. 3r3638.  
Enjoy reading! 3r3640. 3r3638.  
PHP ??? 3r3637. - The long-awaited major release of PHP delivered strictly on schedule. Thanks to all contributors and release managers for their work! In the fresh version of the interpreter a number of improvements: 3r3638.  
• Improved Heredoc and Nowdoc syntax
RFC
3r3638...
+ 0 -

PHP class for outputting color text to the console

PHP class for outputting color text to the console 3r33338. 3r3-31.
I made for myself a script for the site deployment for production. For what it was necessary to display what is happening on the screen. And to make it clearer decided to display in color. However, I could not find something suitable. Maximum library output color text, but did not support indents. Therefore, I made my own library for this. Perhaps someone will be useful. A small (but functional) library for outputting colored text to the console with indentation support in this form
 3r33338.
Console :: ident (2) -> color ('brown') -> bgcolor ('magenta') -> writeln ('Hello Habr!'); ...
+ 0 -

Used car loan for 1 minute

3r33354. Used car loan for 1 minute 3r33357. 3r33333.  
Instead of introducing 3r33351. 3r33333.  
3r33354. Like all interesting stories, this one started long enough and unexpectedly. One day our partner bank came to us and said: “Guys, we learned how to score in our system in one minute. How about combining our efforts and integrating projects? With us - a solution and a loan, with you - cars. ” To say that we were inspired - to say nothing! We had every chance of becoming the first one in the world who can give a loan online for a used car in one minute (ONE MINUTE, KARL)! Below, I will tell you what came out of it, but for a ...
PHP / Yii
+ 0 -

Setting up the Tinkoff Bank API. How is your intuition ? Or a song about Oauth 2.0

 3r33338. 3r3-31. A couple of weeks ago in one of the projects there was a question about the integration of CRM with the API of Bank Tinkoff. In particular, it was about getting a bank account statement.
 3r33338.
 3r33338. The asset had:
 3r33338.
 3r33338. 3r3391.  3r33338. 3r3108. openapi.tinkoff.ru 3r3111.  3r33338. 3r3108. The telephone of the support service (taking into account the employment of the technical support department is the business of saving the drowning man, the work of the drowning man himself). 3r3111.  3r33338. 3r3108. Loaded document: ...
API / PHP
+ 0 -

How to taxi with legacy code when the project needed

How to taxi with legacy code when the project neededas of yesterday. 3r33333. 3r3-31. Hey. My name is Ivan Melnychuk, I am the Head of Development Department in the Ukrainian IT-company. In the publication I want to share personal professional approaches regarding the solution of the legacy code issue in the context of the rapid development of the project and talk about the techniques our team resorts to in cases of “when features need to be handed over“ for yesterday ”. 3r33333. 3r33333. 3r33333. We deal with the project 3r33333. In order to convey how accurate, thoughtful and painstaking, should be work with the Legacy, I will give an analogy with the house of ...
+ 0 -

How to take the load off the north with one byte and a logarithmic function

How to take the load off the north with one byte and a logarithmic functionIt is likely that you noticed that your north often performs work that, strictly speaking, can hardly be called a payload. Usually, these are the cases when the client performs certain actions that require server work, but not directed to the result you have planned.
 
 
In conditions when correctly written code does not cause significant loads on the existing equipment with excessive resources, such phenomena may not attract much attention. However, in non-ideal conditions, this behavior may already, at a minimum, distract server time and interfere with other clients, but at a maximum - entail ...
+ 0 -

PHP Digest number 144 (November 12 - 2? 2018)

 3r? 3522. 3r3-31.
PHP Digest number 144 (November 12 - 2? 2018) 3r33518.

 3r? 3522. 3r33473. Fresh selection with links to news and materials. In the release: PHP ???RC? PhpStorm 2018.3 and other releases, Symfony leaves PHP-FIG, the latest offers and news from PHP Internals, a portion of useful tools, videos from past meetings and conferences and much more.
 3r? 3522. Enjoy reading! 3r33510.
 3r? 3522. PHP ???RC6 3r3507. - The sixth and, probably, the last release candidate of the 7.3 branch. With bated breath we are waiting for the final release already on December 6th. In the meantime, you can once again see what's new in 7.3 in recent reviews
here ..
.
+ 0 -

PHP performance: we plan, we profile, we optimize

+ 0 -

PhpStorm 2018.3 Available

+ 0 -