kalvn's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
page 2 / 5
97 results tagged php  ✕
PHP in 2019 - stitcher.io https://stitcher.io/blog/php-in-2019
16/05/2019 18:15:08

Une lecture intéressante sur l'état de PHP en 2019.

php retourdexperience
Slim 4.0.0-alpha released - Slim Framework https://www.slimframework.com/2019/04/25/slim-4.0.0-alpha-release.html
26/04/2019 13:04:53

L'alpha de Slim Framework 4 est de sortie. Pas encore testé mais la migration d'applications utilisant la v3 vers la v4 risque de nécessiter un peu de boulot.

slimframework php framework release
PHP Apps in a Subdirectory in Nginx | Servers for Hackers - @jeekajoo / links https://jeekajoo.eu/links/?HEEHgQ
05/02/2019 17:11:00
nginx php
OlivierToussaint/clean-code-php: Clean Code concepts adapted for PHP https://github.com/OlivierToussaint/clean-code-php
02/02/2019 15:37:20

Pas mal de bonnes pratiques PHP.

php good-practice
Fonctionnement et configuration d'OPcache | MNT-TECH - Sysadmin blog https://mnt-tech.fr/blog/opcache-configuration-et-fonctionnement/
04/01/2019 14:54:22

tl;dr
Un gros topo sur OPCache et comment bien le configurer.

tldr cache opcache php
How to add push notifications to a progressive web app https://medium.com/plint-sites/how-to-add-push-notifications-to-a-progressive-web-app-c72890eb6e1d
20/12/2018 09:24:49

Des notifications push avec Laravel.

laravel push notification php
Going Frameworkless | Gabriel's Tech blog https://www.detassigny.net/posts/2/going-frameworkless
11/12/2018 10:39:06

C'est en effet toujours utile d'apprendre à réécrire du code de zéro et sans framework.

Ensuite, la bonne alternative est selon moi l'utilisation des micro-frameworks (comme Slim Framework ou Silex) où vous avez le strict minimum pour exposer des pages et ensuite vous ajoutez simplement ce dont vous avez besoin.

php framework retourdexperience dev web
Optimizing PHP-FPM for High Performance https://geekflare.com/php-fpm-optimization/
17/11/2018 00:43:05
php optimisation
Wiki Evolix - Howto PHP https://wiki.evolix.org/HowtoPHP
08/06/2018 13:41:32

Comment bien configurer une installation de PHP (que ce soit mod_php ou php-fpm).

php install configuration
Cache invalidation for scripts in symlinked folders · Issue #126 · zendtech/ZendOptimizerPlus · GitHub https://github.com/zendtech/ZendOptimizerPlus/issues/126
30/05/2018 13:03:41

Une discussion intéressante sur les méthodes pour invalider OPcache après un déploiement effectué par un switch de symlink. En pratique, ça permet d'éviter un restart du web server (même graceful) et de minimiser l'impact d'un déploiement.

Tout le problème se situe au niveau de la gestion des requêtes actuellement traitées par le web server au moment du déploiement. L'idée est d'éviter qu'elles commencent avec l'ancienne version du code et passent sur la nouvelle version en cours de route.

php opcache symlink deploiement
paragonie/easydb: Easy-to-use PDO wrapper for PHP projects. https://github.com/paragonie/easydb
24/05/2018 21:47:56
php pdo database lib
The 2018 Guide to Building Secure PHP Software - Paragon Initiative Enterprises Blog https://paragonie.com/blog/2017/12/2018-guide-building-secure-php-software
17/05/2018 23:27:07

Une saine lecture, très complète.

php sécurité dev
Using Vue.js components in PHP applications – codeburst https://codeburst.io/using-vue-js-components-in-php-applications-e5bfde8763bc
15/05/2018 18:11:53

Un article assez long mais qui donne quelques pistes pour intégrer l'utilisation de Vue.js + Webpack dans une application PHP.

php vuejs webpack
PHP "c'est de la merde" https://www.grafikart.fr/tutoriels/php/php-langage-merde-1001
18/04/2018 10:51:01

Les problèmes soulevés dans l'article sont bien réels mais malgré tout j'aime le PHP parce qu'il n'a pas ce côté black box qu'a Java par exemple. En gros, on sait ce qu'il se passe dans le code à tout instant et ça évite les effets de bords.

Et depuis plusieurs années maintenant il y a beaucoup de framework et d'initiatives qui rendent les choses beaucoup plus solides, stables et inter-opérables (PSR par exemple).

php avisperso
GitHub - phpstan/phpstan: PHP Static Analysis Tool - discover bugs in your code without running it! https://github.com/phpstan/phpstan
17/04/2018 11:08:31

Une sorte de linter PHP.

linter php debug
Note: Vérifier l'encodage d'une chaîne de caractère en PHP /shaare/O2-Stw
14/03/2018 11:09:24

En utilisant le client HTTP Guzzle en PHP, je me suis aperçu que parfois le retour d'une requête GET n'est pas encodé en UTF-8. Et ça semble dépendre de l'environnement. Dans mon cas ça ne marchait pas en local mais sur le serveur oui. Et si vous vous contentez simplement de ne pas en tenir compte et d'ajouter utf8_encode sur la payload de la réponse, ça donne des choses bizarre.

Du coup voici une vérification que vous pouvez faire :

$body = (string) $res->getBody();

if (!preg_match('!!u', $body)) {
    $body = utf8_encode($body);
}

Source : https://stackoverflow.com/questions/4407854/how-to-detect-if-have-to-apply-utf8-decode-or-encode-on-a-string

encodage php http
PHP Twitter Hashtag Validation Regex · GitHub https://gist.github.com/janogarcia/3946583
13/03/2018 15:30:20

Une regex pour valider un hashtag. Implémentation en PHP.

<?php
/**
* PHP Regex to validate a Twitter hashtag
* 
* Useful for validating a text input (an HTML form in your CMS or custom application) that must be a valid Twitter hashtag.
* Valid examples: #a, #_, #_1, #_a, #1a, #áéìôü, #123hàsh_täg446
* Invalid examples: #1, ##hashtag, #hash-tag, #hash.tag, #hash tag, #hashtag!, (any hashtag that is more than 140 characters long, hash symbol included)
* 
* Regex explanation:
* First, the lookahead assertion (?=.{2,140}$) checks the minimum and max length, as explained here http://stackoverflow.com/a/4223213/1441613
* A hash symbol must be the first character. The allowed values for the hash symbol can be expressed with any of the following subpatterns: (#|\\uff0){1}, (#|\x{ff03}){1}, or (#|#){1}.
* A hashtag can contain any UTF-8 alphanumeric character, plus the underscore symbol. That's expressed with the character class [0-9_\p{L}]*, based on http://stackoverflow.com/a/5767106/1441613
* A hashtag can't be only numeric, it must have at least one alpahanumeric character or the underscore symbol. That condition is checked by ([0-9_\p{L}]*[_\p{L}][0-9_\p{L}]*), similar to http://stackoverflow.com/a/1051998/1441613
* Finally, the modifier 'u' is added to ensure that the strings are treated as UTF-8.
*
* More info:
* https://github.com/twitter/twitter-text-conformance
* https://github.com/nojimage/twitter-text-php
* https://github.com/ngnpope/twitter-text-php
*/
preg_match('/^(?=.{2,140}$)(#|\x{ff03}){1}([0-9_\p{L}]*[_\p{L}][0-9_\p{L}]*)$/u', '#hashtag');
php regex hashtag
Bludit - Flat-File CMS https://www.bludit.com/
09/03/2018 11:37:37

Un CMS sans base de données codé en PHP.

Assez standard en terme de fonctionnalités mais il a l'air assez propre.

cms php
PHP Live Regex http://www.phpliveregex.com/
27/02/2018 23:02:43

Un outil pour tester les différentes fonctions utilisant les regex de PHP.

php regex outil
usmanhalalit/pixie: Database query builder for PHP, framework agnostic, lightweight and expressive. https://github.com/usmanhalalit/pixie
08/02/2018 22:05:19

Une lib d'abstraction de base de données. C'est une alternative à FluentPDO.

pdo php database lib sql
page 2 / 5
3845 links, including 129 private
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Theme by kalvn