The Clean Architecture in php



Download 2,26 Mb.
Pdf ko'rish
bet135/179
Sana24.06.2021
Hajmi2,26 Mb.
#100337
1   ...   131   132   133   134   135   136   137   138   ...   179
Bog'liq
The-Clean-Architecture-in-PHP-Kristopher-Wilson

Setting up Composer
Our next step is to setup
Composer³³
so that we can utilize its autoloader for our unit tests. If
you don’t already have it set up, I highly suggest you install it globally so that you can use it
from anywhere.
On a *nix based system, you can do so easily:
# for a home directory install:
curl
-
sS https
://
getcomposer
.
org
/
installer
|
\
php
-- --
install
-
dir
=
bin
--
filename
=
composer
# for a global system install:
curl
-
sS https
://
getcomposer
.
org
/
installer
|
\
sudo php
-- --
install
-
dir
=/
usr
/
local
/
bin
--
filename
=
composer
When done, assuming your paths are set up properly, you can simply run
composer
to verify it
is installed correctly:
composer
You’ll either get an error about command not found, or you’ll get some output. You might need
to double check that

/bin
or
/usr/local/bin
is in your
$PATH
variable. You can check this
easily by running:
echo
$PATH
And looking for those directories in the output. If they’re not in there, try adding them in your

/.bashrc
,

/.zshrc
, or similar file:
³¹
http://www.phptherightway.com/
³²
http://www.sqlite.org/
³³
https://getcomposer.org/


The Billing System
100
export
$PATH
=
'/home/yourname/bin:$PATH'
Make sure you include
:$PATH
on the end, or you’ll overwrite everything else stored in your
$PATH
variable!



Download 2,26 Mb.

Do'stlaringiz bilan baham:
1   ...   131   132   133   134   135   136   137   138   ...   179




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish