PDA

View Full Version : سوال: استفاده از Klein.php



peymang
جمعه 13 تیر 1393, 21:10 عصر
سلام
من در یه پروژه می خوام از Klein.php (https://github.com/chriso/klein.php) استفاده کنم
Klein رو از گیت هاب گرفتم و بعد از نصب composer (https://getcomposer.org/Composer-Setup.exe) بر روی composer.json راست کلیک کردم و composer install رو زدم

یه سری پوشه گرفت که به صورت زیره :

120786

ضمن اینکه وسط کار یه خطا می داد با پیام زیر


Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing phpunit/php-text-template (1.2.0)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download phpunit/php-text-template from dist: The "https://api.github.
com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d
0e809c82fbf00a" file could not be downloaded: php_network_getaddresses: getaddri
nfo failed: This is usually a temporary error during hostname resolution and mea
ns that the local server did not receive a response from an authoritative server
.
failed to open stream: php_network_getaddresses: getaddrinfo failed: This is usu
ally a temporary error during hostname resolution and means that the local serve
r did not receive a response from an authoritative server.
Now trying to download from source
- Installing phpunit/php-text-template (1.2.0)
Cloning 206dfefc0ffe9cebf65c413e3d0e809c82fbf00a


که می گفت فایلی که داخل پیغام خطا اشاره شده نتوسته دانلود کنه من خودم اونو دستی دانلود کردم و داخل پوشه vendor گذاشتم
الان Klein با یه مثال ساده درست کار می کنه
سوال من اینه که :
آیا من تمام فایل ها رو دانلود کردم(از کجا باید بفهمم که تمام فایل ها دانلود شده) ؟

Mohammadsgh
شنبه 14 تیر 1393, 10:56 صبح
شما برای چه کاری از این فایل میخوایید استفاده کنید؟

peymang
شنبه 14 تیر 1393, 13:07 عصر
خوب این یه روتره و برای همین کار باید ازش استفاده کرد

سوال من اینه که خیلی از نرم افزار ها با استفاده از composer نصب می شن حالا klein هم یکیش
اگه یه اروری داد وسطش چطوری میشه فهمید که فایل ها کامل دانلود شدن؟