PHP

Laravel の tinker で日本語が入力出来ない

Laravel の tinker で日本語が入力出来ない時にやったこと 1. 環境 $ uname -a Linux ela2020.dev.vm 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) $ php -v PHP 7.3.7 (cli) (built: Jul 3 2019 11:30:22) ( NTS ) Copyright (c) 1997-2018 The PHP Group

PhpStromでphpcsの設定

1. phpcsインストール Windows の場合 composer は導入済みとする > composer.bat global require "squizlabs/php_codesniffer=*" Changed current directory to C:/Users/foo/AppData/Roaming/Composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Installing squizlabs/php_codesniffer (3.3.0): Downloading (100%) Writing lock file Generating autoload files 場