PHP

5.4

$ apt-get install php5 php5-fpm dh-php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd php5-geoip php5-intl php5-json php5-mcrypt php5-memcache php5-memcached php5-mongo php5-mysql php5-readline php5-redis php5-sqlite php5-ssh2 php5-xcache php5-xsl

7.0

$ apt install php7.0 php7.0-fpm php7.0-common php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-xdebug

7.1

$ apt install php7.1 php7.1-fpm php7.1-common php7.1-curl php7.1-gd php7.1-intl php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-opcache php7.1-sqlite3 php7.1-xml php7.1-xsl php7.1-xdebug

7.2

$ apt install php7.2 php7.2-fpm php7.2-common php7.2-curl php7.2-gd php7.2-intl php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-xsl php7.2-xdebug
$ sudo apt install apt-transport-https lsb-release ca-certificates
$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ apt install lsb-release
$ sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
$ sudo apt update
$ apt install $(dpkg --get-selections | grep -v "deinstall" |grep php7.0| cut -f1 | tr '\n' ' '| tr '7.0' '7.1')
  • apt-get install lsb-release
$ sudo apt install apt-transport-https lsb-release ca-certificates
$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ apt install lsb-release
$ sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
$ sudo apt update
$ sudo apt install $(dpkg --get-selections | grep -v "deinstall" |grep php7.0| cut -f1 | tr '\n' ' '| tr '7.0' '7.2')
$ apt install autoconf automake libtool m4 php7.1-dev
$ pear config-set php_suffix 7.1
$ pecl install event
  • @var tag
  • @return
  • @property type (string, integer)
  • @see tag
  • @inheritdoc
  • @author
  • @since

PHP inline

  • php -r 'echo md5("123");' - запуск с shell строки

WEB crawling library for PHP / Парсеры PHP

REST Клиенты

Node Socket

Видеоуроки