xtfkpi / image-loader
图片下载的包
v1.0.3
2017-02-21 12:34 UTC
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-09-23 15:25:46 UTC
README
使用ImgLoader的示例
<?php require_once "vendor/autoload.php"; \xtfkpi\Imgloader\Loader::get_image('https://hexa.com.ua/wp-content/themes/hexa/images/gir1.jpg');
这个仓库是做什么用的?
编写一个Composer包,用于从远程主机下载图片并将其保存到文件系统中。包应该进行所有可能的检查,并在异常情况下抛出异常。支持的图片格式为jpg、png、gif。
代码需要注释,风格遵循psr-2,自动加载遵循psr-4,注释遵循phpdoc(可选),单元测试遵循phpunit(可选),并在GitHub上提交。
测试执行时间标准为3小时。提交作业后,请通过电子邮件recruiter@hexa.com.ua发送通知,邮件主题为“Middle PHP developer test is taken”。在邮件中说明完成测试所需的时间。