Outils pour utilisateurs

Outils du site


informatique:php

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:php [26/12/2022 07:54] – [Goutte] cyrilleinformatique:php [08/09/2023 07:41] (Version actuelle) – [Outillage] cyrille
Ligne 6: Ligne 6:
   * [[http://julien-pauli.developpez.com/|Les cours de Julien Pauli]] sur developpez.com sont très pertinents (sécurité, ZendFramework, ...).   * [[http://julien-pauli.developpez.com/|Les cours de Julien Pauli]] sur developpez.com sont très pertinents (sécurité, ZendFramework, ...).
   * [[http://g-rossolini.developpez.com/tutoriels/php/5.3/|Les nouveautés de PHP 5.3]]   * [[http://g-rossolini.developpez.com/tutoriels/php/5.3/|Les nouveautés de PHP 5.3]]
 +
 +
 +PHP8 Attributes
 +  * https://stitcher.io/blog/attributes-in-php-8
 +  * https://github.com/TWithers/laravel-php-attributes
 +
 +
  
 [[/informatique/php/Build Win32|Compiler PHP et PECL pour Windows]] [[/informatique/php/Build Win32|Compiler PHP et PECL pour Windows]]
  
-Installer Php/Apache/Mod_SSL : voir [[:informatique:apache]]+ 
 +Installer différentes versions de Php grâce au [[https://launchpad.net/~ondrej/+archive/ubuntu/php|dépôt de Ondřej Surý]] (un développeur Debian) : 
 +<code> 
 +sudo apt install software-properties-common 
 +sudo add-apt-repository ppa:ondrej/php 
 +sudo apt update 
 +</code> 
  
 ===== Application Frameworks ===== ===== Application Frameworks =====
Ligne 83: Ligne 97:
  
 Eclipse plugin: [[http://phpsrc.org/|PHP Tool Integration (PTI)]] Eclipse plugin: [[http://phpsrc.org/|PHP Tool Integration (PTI)]]
 +
 +[[/informatique/php|AOP]] Aspect Oriented Programming avec Php
 +
 ==== phpUnderControl ==== ==== phpUnderControl ====
  
Ligne 288: Ligne 305:
  
 ==== Html & DOM scraper ==== ==== Html & DOM scraper ====
 +
 +=== Simple HTML DOM ===
 +
 +https://packagist.org/packages/voku/simple_html_dom
 +
 +=== php-html-parser ===
 +
 +https://packagist.org/packages/paquettg/php-html-parser
 +
 +=== Goutte ===
 +
 +Goutte is web crawling library for PHP. Goutte fourni un client programmable pour lire et interagir sur des pages html/xml.
 +
 +http://github.com/fabpot/Goutte
 +
 +<code php>
 +// Require the Goutte phar file to use Goutte in a script:
 +require_once '/path/to/goutte.phar';
 +// Create a Goutte Client instance:
 +$client = new Client();
 +// Make requests
 +$crawler = $client->request('GET', 'http://www.symfony-project.org/');
 +// Click on links:
 +$link = $crawler->selectLink('Plugins')->link();
 +$crawler = $client->click($link);
 +// Submit forms:
 +$form = $crawler->selectButton('sign in')->form();
 +$crawler = $client->submit($form, array('signin[username]' => 'fabien', 'signin[password]' => 'xxxxxx'));
 +//Extract data:
 +$nodes = $crawler->filter('.error_list');
 +if ($nodes->count())
 +{
 +  die(sprintf("Authentification error: %s\n", $nodes->text()));
 +}
 +printf("Nb tasks: %d\n", $crawler->filter('#nb_tasks')->text());
 +</code>
 +
 +
  
  
informatique/php.1672037689.txt.gz · Dernière modification : 26/12/2022 07:54 de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki