Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
Breve how-to su come installare composer su OSX - Blog WebEats

Installare composer su OSX e creare un alias con pochissimi comandi da terminale

Cos’è composer? Detto in pochissime parole è un dependency manager per le librerie PHP (un pò come npm o bower)

Prima di tutto apriamo il terminale e scarichiamo composer con il seguente comando

curl -sS https://getcomposer.org/installer | php

dopo pochi secondi ci verrà notificato che composer è disponibile con il file composer.phar

Copiamolo in /usr/local/bin/ con il comando (ci verrà chiesta la password di root)

sudo mv composer.phar /usr/local/bin/

ora editiamo

pico ~/.bash_profile

Inseriamo questa stringa e chiudiamo pico

alias composer="php /usr/local/bin/composer.phar"

Fatto ciò chiudiamo e rilanciamo il terminale. Con la creazione di questo alias, potremo richiamare Composer rapidamente scrivendo solo composer nel terminale.

Installare composer in locale su macOS ci potrà tornare utile per effettuare sviluppo e debugging delle nostre app in PHP, abbinato se mai con editor come Atom, Brackets o Visual Studio Code