PHP code example of aleksey / otus-composer-lib
1. Go to this page and download the library: Download aleksey/otus-composer-lib library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aleksey / otus-composer-lib example snippets
use src\PhoneValidatorRU;$phoneNumber = '8 (925) 122 22 11'; // Номер страницы
$phoneValidatorRU = new PhoneValidatorRU(); // Создание экземпляра
$checkIsPhoneNumber = $phoneValidatorRU->validate($phoneNumber); // Вызов метода валидации
if ($checkIsPhoneNumber) { // Последущее использование
...
}