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 [28/07/2025 15:57] – [Performance] cyrilleinformatique:php [14/07/2026 08:05] (Version actuelle) – [intelephense] cyrille
Ligne 98: Ligne 98:
   * [[https://www.pierre-giraud.com/php-mysql-apprendre-coder-cours/oriente-objet-closure-classe-anonyme/|Les closures et les classes anonymes en PHP objet]] par Pierre Giraud   * [[https://www.pierre-giraud.com/php-mysql-apprendre-coder-cours/oriente-objet-closure-classe-anonyme/|Les closures et les classes anonymes en PHP objet]] par Pierre Giraud
  
 +==== Les Enums (avec valeurs) ====
  
 +<code php>
 +enum DocumentFragmentType: string
 +{
 +  case Sujet = 'sujet';
 +  case Situation = 'situation';
 +  public function priority()
 +  {
 +    /* pas besoin 😉
 +    return match ($this) {
 +      DocumentFragmentType::Sujet => DocumentFragmentTypePriority::Sujet,
 +      DocumentFragmentType::Situation => DocumentFragmentTypePriority::Situation,
 +    };
 +    */
 +    return DocumentFragmentTypePriority::from($this->value);
 +  }
 +};
 +enum DocumentFragmentTypePriority: int
 +{
 +  case Sujet = 1;
 +  case Situation = 3;
 +};
 +
 +</code>
  
 ===== Outillage ===== ===== Outillage =====
Ligne 109: Ligne 133:
  
 [[/informatique/php|AOP]] Aspect Oriented Programming avec Php [[/informatique/php|AOP]] Aspect Oriented Programming avec Php
 +
 +==== Phpstan ====
 +
 +https://phpstan.org/user-guide/
 +
 +<code>
 +/* @phpstan-ignore-next-line */
 +</code>
 +
 +==== intelephense ====
 +
 +https://intelephense.com/docs
 +
 +<code php>
 +/** @disregard [OPTIONAL CODE] [OPTIONAL DESCRIPTION] */
 +/** @disregard P1013 method exists on runtime type */
 +</code>
  
 ==== phpUnderControl ==== ==== phpUnderControl ====
 +<WRAP center round important 60%>
 +phpUnderControl c'est terminé.
 +</WRAP>
 +
 +
 +  * [[http://phpundercontrol.org/|phpUnderControl]] - Continuous Integration for PHP.
 +  * https://github.com/phpundercontrol/phpUnderControl-UNMAINTAINED
  
-[[http://phpundercontrol.org/|phpUnderControl]] - Continuous Integration for PHP. 
   * Testing and software metrics, PHPUnit output: Code Coverage, Project Mess Detection and Software Metrics.   * Testing and software metrics, PHPUnit output: Code Coverage, Project Mess Detection and Software Metrics.
   * Documentation: PhpDocumentor, to generate an up to date documentation of the software on every build cycle. Therefore the developers will always get the latest API documentation of their project. Additionally phpUnderControl extracts the documentation violations found by the PhpDocumentor and visualizes these as an additional quality report in the user interface and the project time line of documentation violations.   * Documentation: PhpDocumentor, to generate an up to date documentation of the software on every build cycle. Therefore the developers will always get the latest API documentation of their project. Additionally phpUnderControl extracts the documentation violations found by the PhpDocumentor and visualizes these as an additional quality report in the user interface and the project time line of documentation violations.
Ligne 141: Ligne 188:
  
 ==== FirePHP ==== ==== FirePHP ====
 +<WRAP center round important 60%>
 +Firebug c'est fini 😩
 +</WRAP>
  
 http://www.firephp.org http://www.firephp.org
Ligne 148: Ligne 198:
  
 ==== SimpleTest ==== ==== SimpleTest ====
 +<WRAP center round important 60%>
 +SimpleTest c'est fini.
 +</WRAP>
  
-http://www.simpletest.org+<del>http://www.simpletest.org</del>
  
 It is a PHP unit test and web test framework. Users of JUnit will be familiar with most of the interface. The JWebUnit style functionality is more complete now. It has support for SSL, forms, frames, proxies and basic authentication. The idea is that common but fiddly PHP tasks, such as logging into a site, can be tested easily.  It is a PHP unit test and web test framework. Users of JUnit will be familiar with most of the interface. The JWebUnit style functionality is more complete now. It has support for SSL, forms, frames, proxies and basic authentication. The idea is that common but fiddly PHP tasks, such as logging into a site, can be tested easily. 
Ligne 192: Ligne 245:
 ==== PHP_CodeSniffer ==== ==== PHP_CodeSniffer ====
  
-http://pear.php.net/package/PHP_CodeSniffer+  * https://github.com/PHPCSStandards/PHP_CodeSniffer/ 
 +  * <del>http://pear.php.net/package/PHP_CodeSniffer</del>
  
-PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.+PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.  
 + 
 +PHP_CodeSniffer is a set of two PHP scripts: 
 + 
 +  * the main ''phpcs'' script that tokenizes PHP files to detect violations of a defined coding standard 
 +  * and ''phpcbf'' script to automatically correct detected coding standard violations.
  
 ===== Librairies ===== ===== Librairies =====
Ligne 220: Ligne 279:
  
 [[http://carbon.nesbot.com/|Carbon]] a simple PHP API extension for DateTime. [[http://carbon.nesbot.com/|Carbon]] a simple PHP API extension for DateTime.
 +
 +==== Console ====
 +
 +  * https://github.com/yannoff/console
 +    * A lightweight, simple alternative to symfony/console, designed for easy PHP applications development.
 +    * Aucune dépendence
  
 ==== Cron ==== ==== Cron ====
informatique/php.1753711041.txt.gz · Dernière modification : 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