{"id":14966870,"url":"https://github.com/yiimaker/yii2-imagable","last_synced_at":"2026-01-16T12:33:29.640Z","repository":{"id":57087148,"uuid":"75548169","full_name":"yiimaker/yii2-imagable","owner":"yiimaker","description":"Image saving extension for yii2","archived":false,"fork":false,"pushed_at":"2017-02-28T11:34:45.000Z","size":229,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T10:57:54.686Z","etag":null,"topics":["gd","image","imagemagick","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiimaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-04T16:05:49.000Z","updated_at":"2023-07-01T12:09:59.000Z","dependencies_parsed_at":"2022-08-20T15:31:14.141Z","dependency_job_id":null,"html_url":"https://github.com/yiimaker/yii2-imagable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yiimaker/yii2-imagable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiimaker%2Fyii2-imagable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiimaker%2Fyii2-imagable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiimaker%2Fyii2-imagable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiimaker%2Fyii2-imagable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiimaker","download_url":"https://codeload.github.com/yiimaker/yii2-imagable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiimaker%2Fyii2-imagable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gd","image","imagemagick","yii2-extension"],"created_at":"2024-09-24T13:37:04.699Z","updated_at":"2026-01-16T12:33:29.611Z","avatar_url":"https://github.com/yiimaker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Instalation\n```\nphp composer.phar require yiimaker/yii2-imagable\n```\nor add\n\n```json\n\"yiimaker/yii2-imagable\": \"*\"\n```\nto the `require` section of your composer.json.\n#Confiugation\nAfter extension is installed you need to setup imagable application component:\n```php\n'imagable' =\u003e [\n    'class' =\u003e 'ymaker\\imagable\\Imagable',\n    'imageClass' =\u003e 'ymaker\\imagable\\instances\\CreateImageImagine',\n    'categories' =\u003e [\n        'origin' =\u003e false,\n        'category' =\u003e [\n            'galery' =\u003e [\n                'origin' =\u003e true,\n            ],\n            'galery/more' =\u003e [\n                'origin' =\u003e false,\n            ],\n            'avatars' =\u003e [\n                'size' =\u003e [\n                    'big' =\u003e [\n                        'width' =\u003e 1000,\n                        'height' =\u003e 500,\n                    ]\n                ]\n            ]\n        ]\n    ]\n    ...\n```\n\n#Usage\n\n###Create image\n```php\n$imageName = \\Yii::$app-\u003eimagable-\u003ecreate('avatars', 'pathToImage');\n// Or\n$imageName = \\Yii::$app-\u003eimagable-\u003ecreateMultiply(['avatars', 'galery/more'], 'pathToImage');\n```\n\n###Get Image\n```php\n$fullPathToImage = \\Yii::$app-\u003eimagable-\u003eget('avatars', 'big', $imageName);\n```\n\n###Delete Image\n```php\n$isDeleted = \\Yii::$app-\u003eimagable-\u003edelete('avatars', $imageName);\n```\n\n###Data provider\n```php\n//To action\n/** @var Imagable $image */\n$imagable = \\Yii::$app-\u003eimagable;\n$imagable-\u003edataProvider = [\n    'key' =\u003e $data\n];\n//...\n\n//To class\nclass ImageClass extends Object implements CreateImageInterface\n{\n    public $dataProvider;\n    \n    public function init()\n    {\n        parent::init(); // TODO: Change the autogenerated stub\n        echo $this-\u003edataProvider['key'];\n    }\n    \n    //...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiimaker%2Fyii2-imagable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiimaker%2Fyii2-imagable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiimaker%2Fyii2-imagable/lists"}