You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You may not know that [the most awesome validation engine for PHP][1] out there
is [Respect/Validation][2]. If you do, this is tailored for you!
All rules on [Respect/Validation][2] are meant to be used together, composing
a more complex validation rule that is closer to the domain of your application
than the existing ones, let's try an example:
PHP: Codeigniter CSRF functionality does not support putting the CSRF token in the HTTP headers for the purposes of the double submit cookie method. It also only runs the CSRF check on POST and not on PUT or DELETE. This drop in MY_Security.php makes sure CSRF runs on POST, PUT or DELETE and checks the HTTP headers for X-XSRF-TOKEN recommended b…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trabalhar com números é muito comum em nossa área e em algum momento de nossa jornada vamos pegar uma aplicação marota que será necessário uma alta manipulação de números, moedas ou até mesmo escrever um numero safado por extenso.
O PHP em si tem uma penca de funções que ajuda a tratar isso, apesar de serem rápidos são bem chatas de se lembrar nomes e ter que fazer nós mesmo certas lógicas. Eu sempre achei isso um saco, pois não faz muito sentido termos que ficar definindo um monte de lógicas que alguma lib poderia fazer.
Pois bem, depois de anos fazendo isso no braço sempre que precisei, me deparo com a classe NumberFormatter que acompanha a extensão intl.
Algo que está documentado e por um acaso passou batido por mim e pelo jeito muitos ainda a desconhe
Bem vindo! Esse é o primeiro-git-post de uma nova funcionalidade em um componente do Respect:
Suponha que você seja louco o suficiente para arquitetar uma API de Olá Mundo que randomicamente dispare Exceptions. Com o Respect/Rest isso ficaria assim:
Um post-receive hook para usar "git push deploy" na locaweb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters