Search
 
SCRIPT & CODE EXAMPLE
 

PHP

composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/bin --filename=composer
php -r "unlink('composer-setup.php');"
Comment

composer

--ignore-platform-reqs
Comment

composer

#!/bin/sh

EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"

if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
then
    >&2 echo 'ERROR: Invalid installer checksum'
    rm composer-setup.php
    exit 1
fi

php composer-setup.php --quiet
RESULT=$?
rm composer-setup.php
exit $RESULT
Comment

php Composer

composer create-project laravel/laravel folder_name
composer install
composer update
composer dump-autoload [--optimize]
composer self-update
composer require [options] [--] [vender/packages]...
Comment

composer

composer create-project laravel/laravel appname

cd appname  

composer require laravel/jetstream  
  
php artisan jetstream:install inertia                            

php artisan migrate 
  
npm install  

php artisan serve

npm run dev

valet park
Comment

PREVIOUS NEXT
Code Example
Php :: twig ternary 
Php :: array should not be empty php 
Php :: wordpress global variable not working 
Php :: php array_map passing parameters 
Php :: php get object keys 
Php :: php validate date format 
Php :: running laravel project in mobile phone 
Php :: phpunit repeat 
Php :: Get User IP address (PHP) 
Php :: laravel orderby with relation 
Php :: php convert special characters to normal 
Php :: joomla login link 
Php :: mt_rand 
Php :: sha256 in php 
Php :: laravel date default now 
Php :: faker 
Php :: carbon two day ago 
Php :: php remove line if it contains string 
Php :: php check version ubuntu 
Php :: nl2br php 
Php :: - tijsverkoyen/css-to-inline-styles 2.2.3 requires ext-dom * - the requested PHP extension dom is missing from your system. 
Php :: the action you have requested is not allowed. in codeigniter 
Php :: laravel created_at where date format 
Php :: laravel where first 
Php :: getting last day of next month in php 
Php :: how to add recaptcha to woocommerce register php 
Php :: create foreign key phpmyadmin 
Php :: get the content from post id wordpress 
Php :: laravel-socialite-invalidstateexception 
Php :: how to add property to an object in php 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =