I hereby claim:
- I am tdutrion on github.
- I am tdutrion (https://keybase.io/tdutrion) on keybase.
- I have a public key whose fingerprint is 404A BA60 FC6E 2551 E3DD 3E6B 7D61 F427 D1AE 1AE5
To claim this, I am signing this object:
<?php | |
return [ | |
'navigation' => [ | |
'default' => [ | |
[ | |
'label' => 'Home', | |
'route' => 'home', | |
'pages' => [ | |
[ |
I hereby claim:
To claim this, I am signing this object:
FROM php:7-fpm | |
RUN apt-get update && apt-get install -y git libcurl4-gnutls-dev zlib1g-dev libicu-dev g++ libxml2-dev libpq-dev \ | |
&& git clone -b php7 https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis \ | |
&& docker-php-ext-install pdo pdo_mysql pdo_pgsql pgsql intl curl json opcache xml redis \ | |
&& apt-get autoremove && apt-get autoclean \ | |
&& rm -rf /var/lib/apt/lists/* |
Class attributes should be private
or protected
, as we do not want to expose the object logic but rather behaviours through public
method. How the class works inside is not the business of the developer that uses the library, details of the implementation do not matter for the him/her.
class Book
{
public $title;
public $content;
Official tutorial from which this is adapted:
Clone the project from Florent's repository (updated ZF3 quickstart):]
git clone [email protected]:Orkin/tsi-getting-start.git
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sed aliquam felis. Nunc pulvinar massa ac egestas auctor. Ut elit risus, fringilla in ex nec, sodales aliquet massa. Proin ac justo nisi. Maecenas in hendrerit sem, vel interdum nisl. Nunc vitae tristique sem. Vestibulum vel mi congue lectus faucibus finibus. Nunc molestie lectus risus. Fusce sit amet pellentesque ligula. Sed non nulla dapibus, iaculis felis non, mattis dolor. Donec venenatis est sit amet magna semper suscipit. Donec vel neque a augue scelerisque gravida eu a erat. Nullam varius est neque, eget convallis risus tincidunt ut. Mauris interdum ut odio vitae fringilla.
Sed quam arcu, elementum vel vestibulum vel, dignissim eget metus. Cras sagittis velit purus, nec volutpat nibh tristique at. Curabitur luctus nulla a elit fermentum sagittis. Aliquam vel condimentum dui. Donec viverra lectus ac sodales sagittis. Sed commodo sit amet purus quis porta. Morbi suscipit commodo lectus, laoreet effi
<?php | |
declare(strict_types=1); | |
namespace App\Faker\Provider; | |
use function copy; | |
use function curl_close; | |
use function curl_exec; | |
use function curl_getinfo; |