#php-cs-fixer
Explore tagged Tumblr posts
Photo
GitHub Actions, prettier and php-cs-fixer to automatically fix code. ☞ https://bit.ly/3gnW60f #php #laravel
2 notes
·
View notes
Text
Coding Styles festlegen
Teil 4 - Coding Styles sind ein wichtiger Bestandteil in Projekten an die man sich unbedingt halten sollte. Natürlich kann jeder Entwickler, respektive jede Agentur ihren eigenen Coding Style bzw. Coding Guidelines definieren, aber es macht durchaus Sinn sich an bewährtem zu orientieren bzw. bewährtes zu nutzen.
Für TYPO3 Projekte gibt es bereits eine ausführliche Dokumentation zum Thema Coding Guidelines bzgl. PHP Dateien. Im allgemeinen wird auf den PSR-2 Standard gesetzt. Dieser lässt sich in PhpStorm einfach einrichten. Damit aber nicht genug, auch HTML, CSS und JavaScript Dateien unterliegen einem CodeStyle.
PSR-2 CodeStyle einrichten
Der CodeStyle für PHP Dateien lässt sich sehr einfach, mit wenigen Klicks in den PhpStorm Einstellungen festlegen.
PHP-CS-FIXER
Zusätzlich könnt (solltet) ihr euch PHP-CS-Fixer installieren wodurch ihr euren Code nach Änderungen erneut formatieren lassen könnt. Dazu kann man sich im Projekt eine *.dist Datei anlegen, welche als Konfiguration für PHP-CS-Fixer genutzt wird. Im TYPO3 Core befindet sich bereits eine entsprechende Konfigurationsdatei, welche auch für eigene Projekte genutzt werden kann. Weiterhin hat Nicole Cordes für die Extension content-defender eine eigene Konfigurationsdatei und bevor ich das alles wußte, hatte ich mir die Mühe gemacht und eine entsprechende Datei erstellt. Diese gibt es als Gist zum download.
Für welche ihr euch auch immer entscheidet ist nicht wichtig, sondern das ihr PHP-CS-Fixer regelmäßig über euren Code laufen lasst. Dazu könnt ihr PHP-CS-Fixer als externes Tool in PhpStorm einbinden. Ich habe dafür 2 Konfigurationen angelegt, wobei die eine Konfiguration nur die aktuell geöffnete Datei und die zweite Konfiguration das gesamte Projekt überprüft und anpasst.
Nachdem die Einstellungen in PhpStorm konfiguriert sind, könnt ihr nun mit einem Rechtsklick auf eine Datei oder euren Projektordner PHP-CS-Fixer ausführen.
EditorConfig
Damit ihr einen Code Style für alle anderen Dateien (abgesehen von PHP Dateien) erhaltet, könnt ihr euch innerhalb eures Projektes die Datei .editorconfig anlegen bzw. ihr nutzt die entsprechende Datei aus dem TYPO3 Core und speichert diese in eurem Projekt. Anschließend, falls noch nicht geschehen installiert ihr das Plugin EditorConfig und alle neu angelegten Dateien werden entsprechend der Definition formatiert.
Für den Tipp mit der .editorconfig, welcher mir absolut neu war möchte ich mich bei @IchHabRecht, @faulencer, @MarcusSchwemer, @kaystrobach und @wahnsinn bedanken.
Meine Einstellungen für HTML und XML Dateien könnt in den nachfolgenden Screenshots sehen. An dieser Stelle, Danke an @IchHabRecht für das teilen der Einstellungen.
Bestehende Dateien (außer PHP-Dateien) können zudem über den Menüpunkt Code => Reformat Code formatiert werden. Ihr könnt dabei auch einzelne Ordner auswählen und die Formatierung darauf anwenden. Die Optionen Optimize imports und Rearrange entries habe ich dabei deaktiviert.
Gelegentlich habe ich das Problem, dass InlineViewHelper umgebrochen werden, wodurch Fluid diese nicht mehr korrekt erkennen kann und entsprechende Fehlermeldungen ausgibt. Hier also mit Vorsicht unterwegs sein.
Falls ihr weitere Anregungen zum CodeStyle habt, dann gern her damit. Entweder in den Kommentaren oder per Twitter an @chriwode.
0 notes
Photo

Sometimes the problem is that you update too much 😁 friendsofphp/php-cs-fixer v2.13.0 requires php ^5.6 || >=7.0 <7.3 -> your PHP version (7.3.0) does not satisfy that requirement. . . #php #code #coding #vscode #visualstudio #visualstudiocode #phpcs #programming #coder #techie #technology #terminal #linux #bash #zsh https://www.instagram.com/p/Br2BqGkhN0E/?utm_source=ig_tumblr_share&igshid=878a2e2t3p9k
#php#code#coding#vscode#visualstudio#visualstudiocode#phpcs#programming#coder#techie#technology#terminal#linux#bash#zsh
4 notes
·
View notes
Text
Ultimate Vim Configuration for Developer
Install latest version of nodejs (For ubuntu like distro)
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh sudo bash nodesource_setup.sh sudo apt-get install -y nodejs
Download plug.vim and put it in the "autoload" directory.
usually found in the echo $VIMRUNTIME directory
in my case it was :/usr/local/share/vim/vim82
since I compiled from source in most installations you can do the following:
Vim
Unix
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
You can automate the process by putting the command in your Vim configuration file as suggested here.
Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` ni $HOME/vimfiles/autoload/plug.vim -Force
Neovim
Unix, Linux
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
edit and add the following to your .vimrc:
set number set clipboard=unnamedplus colorscheme peaksea set backspace=indent,eol,start call plug#begin('~/.vim/plugged') Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'ctrlpvim/ctrlp.vim' Plug 'ctrlpvim/ctrlp.vim' Plug 'preservim/nerdtree' Plug 'chrisbra/vim-commentary' Plug 'jlanzarotta/bufexplorer' Plug 'itchyny/lightline.vim' Plug 'preservim/tagbar' call plug#end() set laststatus=2 let mapleader = "," nmap <leader>w :w!<cr> map <leader>tn :tabnew<cr> map <leader>to :tabonly<cr> map <leader>tc :tabclose<cr> map <leader>tm :tabmove " Opens a new tab with the current buffer's path " Super useful when editing files in the same directory map <leader>te :tabedit <C-r>=expand("%:p:h")<cr>/ " Close current buffer map <leader>bd :Bclose<cr> map <leader>tt :term<cr> " Close all buffers map <leader>ba :1,1000 bd!<cr> vnoremap <silent> <leader>r :call VisualSelection('replace')<CR> map <leader>o :BufExplorer<cr> " Quickly find and open a file in the CWD let g:ctrlp_map = '<C-f>' " Quickly find and open a recently opened file map <leader>f :CtrlPMRU<CR> " Quickly find and open a buffer map <leader>b :CtrlPBuffer<cr> map <leader>nn :NERDTreeToggle<cr> map <leader>nb :NERDTreeFromBookmark map <leader>nf :NERDTreeFind<cr> map <leader>ss :setlocal spell!<cr> map <leader>sn ]s map <leader>sp [s map <leader>sa zg map <leader>s? z= nmap <F8> :TagbarToggle<CR>
restart vim and type
:PlugInstall
Restart vim and enjoy.
In vim install the plugins you need for your development
For example:
:CocInstall coc-json coc-css
That was css
Few of the available plugins are:
You can find available coc extensions by searching coc.nvim on npm, or use coc-marketplace, which can search and install extensions in coc.nvim directly.
coc-angular for angular.
coc-blade-formatter for blade, Integrates the blade-formatter (Laravel Blade formatter).
coc-blade-linter for blade, Integrates the Laravel Blade Linter.
coc-browser for browser words completion
coc-calc expression calculation extension
coc-cfn-lint for CloudFormation Linter, cfn-python-lint
coc-clangd for C/C++/Objective-C, use clangd
coc-clang-format-style-options coc.nvim extension, helps you write .clang-format more easily.
coc-cmake for cmake code completion
coc-css for css, scss and less.
coc-cssmodules css modules intellisense.
coc-deno for deno.
coc-denoland for deno, fork of vscode_deno.
coc-diagnostic for All filetypes, use diagnostic-languageserver.
coc-discord discord rich presence for coc.nvim
coc-discord-rpc fully customizable discord rpc integration with support for over 130+ of the most popular languages
coc-dash-complete Press - to trigger buffer source completion.
coc-dot-complete Press . to trigger buffer source completion.
coc-ecdict ECDICT extension
coc-elixir for elixir, based on elixir-ls.
coc-ember for ember projects.
coc-emmet provides emmet suggestions in completion list.
coc-erlang_ls for erlang, based on erlang_ls
coc-esbonio for rst (reStructuredText), esbonio ([Sphinx] Python Documentation Generator) language server extension.
coc-eslint Eslint extension for coc.nvim
coc-explorer file explorer extension
coc-floaterm for vim-floaterm integration
coc-flow for flow
coc-flutter for flutter
coc-fsharp for fsharp.
coc-fzf-preview provide powerful fzf integration.
coc-gist gist management
coc-git provides git integration.
coc-glslx for glsl, use glslx.
coc-go for go, use gopls.
coc-graphql for graphql.
coc-highlight provides default document symbol highlighting and color support.
coc-html for html, handlebars and razor.
coc-htmldjango for htmldjango, django templates (htmldjango) extension. Provides "formatter", "snippets completion" and more...
coc-htmlhint for html, Integrates the HTMLHint static analysis tool.
coc-html-css-support for HTML id and class attribute completion.
coc-intelephense for php, fork of vscode-intelephense. (scoped packages: @yaegassy/coc-intelephense)
coc-java for java, use eclipse.jdt.ls.
coc-jedi for python, use jedi-language-server.
coc-json for json.
coc-julia for julia.
coc-just-complete Press _ to trigger buffer source completion.
coc-lists provides some basic lists like fzf.vim.
coc-lsp-wl for wolfram mathematica, fork of vscode-lsp-wl.
coc-markdownlint for markdown linting
coc-metals for Scala using Metals
coc-omnisharp for csharp and visualbasic.
coc-perl for perl.
coc-php-cs-fixer for php, Integrates the php-cs-fixer (PHP Coding Standards Fixer).
coc-phpactor for php, using phpactor
coc-phpls for php, use intelephense-docs.
coc-psalm for php, use psalm.
coc-powershell for PowerShellEditorService integration.
coc-prettier a fork of prettier-vscode.
coc-prisma for Prisma schema integration.
coc-pyright Pyright extension
coc-python for python, extension forked from vscode-python. (Not maintained anymore)
coc-pydocstring for python, using doq (python docstring generator) extension.
coc-r-lsp for r, use R languageserver.
coc-reason for reasonml
coc-rls for rust, use Rust Language Server
coc-rome for javascript, typescript, json and more, use Rome
coc-rust-analyzer for rust, use rust-analyzer
coc-sh for bash using bash-language-server.
coc-stylelintplus for linting CSS and CSS preprocessed formats
coc-stylelint for linting CSS and CSS preprocessed formats
coc-snippets provides snippets solution.
coc-solargraph for ruby, use solargraph.
coc-sourcekit for Swift
coc-spell-checker A basic spell checker that works well with camelCase code
coc-sql for sql.
coc-sqlfluff for sql, SQLFluff (A SQL linter and auto-formatter for Humans) extension
coc-svelte for svelte.
coc-svg for svg.
coc-swagger for improved Swagger/OpenAPI spec authoring experience.
coc-tabnine for tabnine.
coc-tailwindcss for tailwindcss.
coc-tasks for asynctasks.vim integration
coc-texlab for LaTeX using TexLab.
coc-toml for toml using taplo.
coc-translator language transaction extension
coc-tsserver for javascript and typescript.
coc-vetur for vue, use vetur.
coc-vimlsp for viml.
coc-xml for xml, use lsp4xml.
coc-yaml for yaml
coc-yank provides yank highlights & history.
coc-thrift-syntax-support for thrift.
in case it the vim version is an issue then you will need to install and compile version:
sudo apt-get install lua50 liblua50-dev liblualib50-dev sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial sudo make install sudo apt-get install python3-dev sudo apt-get install python-dev
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge --enable-rubyinterp --enable-python3interp --with-python-config-dir=/usr/bin/python3.6-config --enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-luainterp --with-lua-prefix=/usr/local
make
make install
You can get the config here:
https://github.com/macunan/vimconfig/blob/main/.vimrc
0 notes
Photo
Sharing PHP-CS-Fixer rules across projects and teams ☞ http://go.codetrick.net/ed549b7447 #php #laravel
0 notes
Photo
Sharing PHP-CS-Fixer rules across projects and teams ☞ http://go.codetrick.net/ed549b7447 #php #laravel
0 notes
Text
What's New in PhpStorm 2018.3
youtube
Please meet PhpStorm 2018.3 — a major update for the PHP IDE!
What’s new:
00:11 — DQL Support 01:00 — New refactorings 01:31 — PHP CS Fixer 02:23 — Improvements for PHP_CodeSniffer 03:02 — Test Frameworks support improvements 03:47 — Deployment to multiple hosts 04:20 — And much more!
See the overview of the new features and download PhpStorm 2018.3 on our website
This release improves PHP development experience in a lot of ways, including advanced DQL support for Doctrine ORM, PHP 7.3 support, Remote deployment to multiple hosts, new intention actions and improved refactorings, improvements for quality tools along with PHP CS Fixer support, GitHub Pull Requests, a new high-contrast theme, and lots of other goodies! Nguồn:https://phprealestatescript.com/ Xem Thêm Bài Viết Khác:https://phprealestatescript.com/lap-trinh-php
Share Tweet Share
The post What's New in PhpStorm 2018.3 appeared first on PHP Realestate Script.
from PHP Realestate Script https://ift.tt/2S9R2kO via IFTTT
0 notes
Text
What's New in PhpStorm 2018.3
youtube
Please meet PhpStorm 2018.3 — a major update for the PHP IDE!
What’s new:
00:11 — DQL Support 01:00 — New refactorings 01:31 — PHP CS Fixer 02:23 — Improvements for PHP_CodeSniffer 03:02 — Test Frameworks support improvements 03:47 — Deployment to multiple hosts 04:20 — And much more!
See the overview of the new features and download PhpStorm 2018.3 on our website
This release improves PHP development experience in a lot of ways, including advanced DQL support for Doctrine ORM, PHP 7.3 support, Remote deployment to multiple hosts, new intention actions and improved refactorings, improvements for quality tools along with PHP CS Fixer support, GitHub Pull Requests, a new high-contrast theme, and lots of other goodies! Nguồn:https://phprealestatescript.com/ Xem Thêm Bài Viết Khác:https://phprealestatescript.com/lap-trinh-php
Share Tweet Share
The post What's New in PhpStorm 2018.3 appeared first on PHP Realestate Script.
from PHP Realestate Script https://ift.tt/2S9R2kO via IFTTT
0 notes
Text
Learning to add git hook tasks: #PHP-CS-Fixer https://t.co/kip1XpEso5 https://t.co/JUb7T1MUSZ
Learning to add git hook tasks: #PHP-CS-Fixer https://t.co/kip1XpEso5 pic.twitter.com/JUb7T1MUSZ
— Macronimous.com (@macronimous) May 23, 2019
from Twitter https://twitter.com/macronimous May 24, 2019 at 02:25AM via IFTTT
0 notes
Photo
Sharing PHP-CS-Fixer rules across projects and teams ☞ http://go.codetrick.net/ed549b7447 #php #laravel
0 notes
Photo

@phpc : RT @OskarStark: If you are using #github actions (beta) 😎 with a #php project, try my new one for PHP-CS-Fixer and provide some feedback. You just need to copy/paste the example config and you are good to go 👊🏻 https://t.co/LDOF00CAQn https://t.co/mM8Whu28hv
0 notes
Text
RT @ryanhoerr: Maybe the best part of #Magento 2 development after M1 is being able to tell everyone 'setup PSR-2 and PHP CS Fixer' and never having to worry about code style again.
Maybe the best part of #Magento 2 development after M1 is being able to tell everyone 'setup PSR-2 and PHP CS Fixer' and never having to worry about code style again.
— Ryan Hoerr (@ryanhoerr) September 27, 2018
from Twitter https://twitter.com/fbeardev
0 notes
Text
FriendsOfPHP/PHP-CS-Fixer https://t.co/eOvTTidvIP
FriendsOfPHP/PHP-CS-Fixer https://t.co/eOvTTidvIP
— Christophe Gesché (@Moosh_be) February 13, 2018
via Twitter https://twitter.com/Moosh_be February 13, 2018 at 11:58PM
0 notes
Photo
GitHub Actions, prettier and php-cs-fixer to automatically fix code. ☞ https://bit.ly/3gnW60f #php #laravel
0 notes
Photo
GitHub Actions, prettier and php-cs-fixer to automatically fix code. ☞ https://bit.ly/3gnW60f #php #laravel
0 notes
Text
3ds max 2010 keygen x force 32 bit
3ds max 2010 keygen x force 32 bit Sitemap File scavenger version 4.0 keygen Photoshop cs6 keygen mac without survey Nero burning rom 12 keygen generator Jpg to pdf converter 2.1 keygen Keygen untuk governor of poker 2 Microsoft office home and business 2010 crack keygen Microsoft project 2010 professional x64 keygen Adobe illustrator cs6 serial number keygen free download Sound forge 6 keygen download 3herosoft video converter keygen Microsoft enterprise 2007 keygen Office accounting professional 2009 keygen Galletto v2 keygen Xfrog 5 for maya 2012 keygen Kaspersky pure 3.0 keygen crack Scanxl elm crack keygen Nero 8 ultra edition 8.1.1.3 keygen Nuendo 4 crack keygen Keygen idm 6.15 download Air keygen omnisphere 1.0 Identificateur de confirmation windows xp keygen Mindjet mindmanager 8.2.319 keygen Toontrack superior drummer 2.0 mac keygen Magix movie edit pro 12 keygen Ontrack easyrecovery professional 6.22 keygen Nero 9 keygen Cleanmymac classic keygen Albino 3 vst keygen Xforce keygen 32 bit revit 2009 Act of war direct action cd keygen Xilisoft video converter ultimate keygen free downloads Companionlink express 5 keygen Avg all products keygen 2012 Driver genius professional 10 serial keygen Mindmanager 11.2.185 keygen Mudbox 2015 keygen Ispring quizmaker 5.7 keygen Maya 2012 mac lion keygen Keygen liscad 10 Active disk image 5 keygen A better finder rename keygen Tinkertool system 2 keygen Keygen alfapos 4 Typing master pro 7.1.0.808 keygen Stationripper keygen 2.93 Sir2 reverb keygen Call of duty 4 keygen generator Keygen windows 7 manager 4.2.6 Ableton live 9 keygen no survey Descargar adobe photoshop cs2 keygen gratis Nitro pro 9 keygen password Cdrwin 10 keygen Fxfactory pro keygen mac Regcure pro keygen 3.1.1 3dmark 11 full keygen download Maxbulk mailer mac keygen Adobe photoshop cs2 0.9 keygen Mettle freeform pro keygen Perfect photo suite 8 keygen mac Window 7 home premium keygen Green fields 3d screensaver keygen Microsoft word 2010 keygen 2013 Router keygen android 2.2 Azgard defence keygen Gamegain 2 keygen Keygen yenka 3.4.0 Imacsoft dvd creator keygen Artisteer 3 keygen mesmerize Adobe flash player cs4 keygen Download keygen photoshop cs2 9.0 Raxco perfectdisk 14 keygen Adobe acrobat xi download keygen Gfwl keygen 2013 download Wild media server 1.57 keygen Dongsoft pdf to kindle converter keygen Keygen software key generator free download T racks classic clipper keygen Total recall call recorder keygen free download Cdma workshop 3.8.0 keygen Mathcad prime 3.0 keygen Debugbar 7.2 keygen Brian lara international cricket 2007 keygen Crysis 2 1.9 keygen download Photomatix pro 4.2 windows keygen X-force 2016 keygen Office 2007 enterprise serial keygen Photoshop mac cs6 keygen Nfs hot pursuit keygen 2012 Powerarchiver 13 keygen Bosch esi tronic 2012 q1 keygen Apk router keygen 2015 Arclab watermark studio v2.2 keygen Fabfilter total bundle keygen mac Xforce keygen autocad 2010 download free Assassin's creed 3 activation keygen Sound forge 6.0 serial number keygen Download keygen sony vegas pro 12 Atomic email hunter 4.75 keygen Filmconvert pro mac keygen Anno 1404 venice keygen free download Keyshot 4 keygen only Keygen para desktop icon toy Microsoft project 2010 crack keygen Art plus digital photo recovery 5.1 keygen free Win 7 pro product keygen Cs go beta keygen no survey Keygen hacker zmaim facebook Reaconverter pro 6 keygen Php designer 8 keygen Windows password breaker enterprise keygen Sothink swf easy keygen Acdsee 10 crack keygen Stellar phoenix outlook pst repair v4.0 keygen Kontakt 5 keygen download Edius 7 pro keygen generator Descargar keygen samplitude music studio 16 Any video converter pro keygen Autocad civil 3d 2010 activation code keygen Immunet protect 3 keygen Cod4 cracked keygen Power data recovery keygen 6.6 Trilogy total bass keygen Vmware vcenter server v5 keygen Acid pro 7.0a keygen Mac office 2011 keygen online Spectrasonics trilian 1.1.4c mac keygen Izotope nectar v1.12 keygen Bluesoleil space 8.0.395.0 keygen Audials one 11 keygen Ultralingua 7 keygen serial crack Kaspersky antivirus 2010 keygen generator Windows home server keygen Winutilities 10.52 keygen Sandboxie keygen 5.06 Winrar 3.93 x64 keygen Ibackupbot for itunes download keygen Adobe creative suite 5.5 master collection keygen only Xilisoft iso burner keygen Idm keygen patch 6.19 Advanced gif animator keygen 3.0 Jstor password keygen Corel x6 64 bit keygen only K7 total security crack keygen free download Cisco magic keygen Autocad 2009 keygen download free Color efex pro 4 keygen free download Vir2 instruments acoustic legends keygen Presonus studio one pro 2 keygen Reason 4.0 mac keygen Power cd g burner 2 keygen Mindjet 14 keygen Ufs explorer 5.6 keygen Acdsee 17 keygen core Visual studio 2010 ultimate keygen Imindmap 7 keygen Quicktime 7 pro keygen windows Outpost firewall pro 9.1 keygen Artensoft photo mosaic wizard 1.4 keygen Okdo document converter professional 4.9 keygen Tune4mac itunes video converter platinum keygen Sound forge 10 mac keygen Caricature studio 3.6 serial keygen Visual certexam manager keygen Keygen bandicam 1.8.6 Cs5 extended keygen mac Sap business one license keygen 3d city car driving 2.2.7 keygen Babylon translation software crack keygen All software keygen generator Free software cracks keygens Corel paint shop pro x6 keygen Game maker for mac keygen Cadsoft eagle professional 6.3 keygen Goldwave 5.68 keygen blizzard Sothink logo maker professional keygen Free download router keygen for blackberry Crack diskdigger keygen Test drive unlimited 2 keygen crack pc Any pdf to dwg converter version 2010 keygen Free download photoshop lightroom 4 keygen Winavi all in one converter keygen 1.6 Download internet download manager 6.11 keygen Switch sound file converter plus 4.47 keygen Corel draw x3 keygen free Keygen para autocad architecture 2013 64 bits Dottrace memory 3.5 keygen Aiseesoft mts converter crack keygen Crysis 2 pc crack serial keygen free download Hdr sum 2 keygen Malwarebytes anti-malware pro 1.65 keygen Smart pc fixer license keygen Product key win 8 keygen Download keygen corel draw x4 gratis Pc cleaner pro 2013 license keygen Descargar el keygen para guitar pro 6 Navicat premium mac keygen Mayan waterfall 3d screensaver keygen Fm 14 keygen no survey
0 notes