Pode parecer intimidador mas te garanto que se seguir o passo a passo que preparei vai conseguir tranquilo E lembra, só precisa fazer esses passos uma vez e vai estar seguro contra imprevistos com seu computador.
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
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:[email protected]&display=swap'); | |
/* Se não funcionar com o body coloque um asterisco(*) no lugar */ | |
body { | |
font-family: "Kode Mono" !important; | |
--h1-color: #ffffff; | |
--h2-color: orange; | |
--h3-color: yellow; | |
--h4-color: rgb(242, 64, 64); | |
--h5-color: rgb(99, 49, 237); |
- Para configurar a conta(name) globalmente: git config --global user.name "Seu nome"
- Para configurar a conta(email) globalmente: git config --global user.email "Seu email"
- Para configurar a conta(name) localmente: git config --local user.name "Seu nome"
- Para configurar a conta(email) localmente: git config --local user.email "Seu email"
Links:
- Laravel Fleet: https://github.com/aschmelyun/fleet
- Gerar certificado ssl: https://github.com/FiloSottile/mkcert?tab=readme-ov-file
Passos:
- Instalar o mkcert(Para o certificado ssl)
- No linux
- sudo apt install libnss3-tools
-
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
- No linux
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
<?php | |
// folders to fix | |
// In terminal if you dont want to use the --config flag | |
$finder = (new PhpCsFixer\Finder()) | |
->in([ | |
'app', | |
]); | |
$config = new PhpCsFixer\Config(); |
- Curso de Slim Framework
- Aulas avulsas de Slim Framework
- Curso de Fortify
- Estrutura profissional com PHP
- Nessa playlist comecei usando as thumbs do php orientado a objetos mas quero uma thumb só para ele.
- https://www.youtube.com/playlist?list=PLyugqHiq-SKfea-DJec-giZ4OKUowSloR
- Uma thumb específica para o curso de PHP Orientado a Objetos.
- Sei que já tem uma thumb para php orientado a objetos, mas quero uma somente para esse curso.
Já pensou receber um código com um padrão totalmente diferente do teu e ter que em cada arquivo mudar o padrão ? Não seria melhor rodar um comando no terminal e automaticamente todos os arquivos seguirem o seu padrão ?
Links:
- Repositório oficial: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
- Regras: https://mlocati.github.io/php-cs-fixer-configurator/#version:3.65
- Link do arquivo de regras: https://gist.github.com/aleduca/a99d1ea82ab1bc11a15a2f238a38f159
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
#!/usr/bin/env php | |
<?php | |
# Se foi feito um commit | |
exec('git rev-parse --verify HEAD 2>/dev/null', $output, $returnCode); | |
# Se nenhum commit foi feito então faz sem nenhuma verificação(phpunit e phpstan) | |
if($returnCode !== 0) { | |
echo "\033[31m⚠️Nenhum commit feito anteriormente\033[0m\n" . PHP_EOL; | |
echo "\033[32m⚠️Commit sendo executado...\033[0m\n" . PHP_EOL; |
- Instalar o laravel
laravel new project-name
- Instalar o sail no laravel
php artisan sail:install
- Criar os containers com
php ./vendor/bin/sail up -d
- Se der problema com a porta do mysql mudar para 3307
${FORWARD_DB_PORT:-3307}:3306
- Se der problema com a porta do mysql mudar para 3307
- Entrar no navegador em localhost
- Rodar migrate no container.
sail artisan migrate
- Criar atalho(apelido) para o ./vendor/bin/sail
alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'
- Entrar no container e ver a versão do php
sail exec laravel.test bash
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
https://github.com/openssl/openssl | |
1 - Baixar o Strawberry | |
- Já é colocado no path das variáveis de ambiente, então tenho acesso no terminal ao Perl. | |
2 - Baixar o openSSL | |
3 - Instalar o openSSL com o perl através do comando "perl Configure VC-WIN64A" | |
4 - Seguir os passos abaixo. | |
4a. Gerar a chave privada | |
openssl genrsa -out private.key 2048 |
NewerOlder