informatique:php
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
informatique:php [26/12/2022 07:54] – [Goutte] cyrille | informatique:php [08/09/2023 07:41] (Version actuelle) – [Outillage] cyrille | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | |||
+ | PHP8 Attributes | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | |||
[[/ | [[/ | ||
- | Installer Php/ | + | |
+ | Installer | ||
+ | < | ||
+ | sudo apt install software-properties-common | ||
+ | sudo add-apt-repository ppa: | ||
+ | sudo apt update | ||
+ | </ | ||
===== Application Frameworks ===== | ===== Application Frameworks ===== | ||
Ligne 83: | Ligne 97: | ||
Eclipse plugin: [[http:// | Eclipse plugin: [[http:// | ||
+ | |||
+ | [[/ | ||
+ | |||
==== phpUnderControl ==== | ==== phpUnderControl ==== | ||
Ligne 288: | Ligne 305: | ||
==== Html & DOM scraper ==== | ==== Html & DOM scraper ==== | ||
+ | |||
+ | === Simple HTML DOM === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | === php-html-parser === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | === Goutte === | ||
+ | |||
+ | Goutte is web crawling library for PHP. Goutte fourni un client programmable pour lire et interagir sur des pages html/xml. | ||
+ | |||
+ | http:// | ||
+ | |||
+ | <code php> | ||
+ | // Require the Goutte phar file to use Goutte in a script: | ||
+ | require_once '/ | ||
+ | // Create a Goutte Client instance: | ||
+ | $client = new Client(); | ||
+ | // Make requests | ||
+ | $crawler = $client-> | ||
+ | // Click on links: | ||
+ | $link = $crawler-> | ||
+ | $crawler = $client-> | ||
+ | // Submit forms: | ||
+ | $form = $crawler-> | ||
+ | $crawler = $client-> | ||
+ | //Extract data: | ||
+ | $nodes = $crawler-> | ||
+ | if ($nodes-> | ||
+ | { | ||
+ | die(sprintf(" | ||
+ | } | ||
+ | printf(" | ||
+ | </ | ||
+ | |||
+ | |||
informatique/php.1672037689.txt.gz · Dernière modification : 26/12/2022 07:54 de cyrille