{"id":15046071,"url":"https://github.com/andrewgjohnson/imagegradientrectangle","last_synced_at":"2026-01-22T11:33:35.001Z","repository":{"id":56948008,"uuid":"160991702","full_name":"andrewgjohnson/imagegradientrectangle","owner":"andrewgjohnson","description":"imagegradientrectangle is a function that will draw a gradient filled rectangle on your PHP GD images.","archived":false,"fork":false,"pushed_at":"2024-08-18T19:01:04.000Z","size":1802,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T21:55:43.565Z","etag":null,"topics":["composer","gd","graphics","image","images","php"],"latest_commit_sha":null,"homepage":"https://imagegradientrectangle.agjgd.org","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewgjohnson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"andrewgjohnson","patreon":"agjgd"}},"created_at":"2018-12-09T00:48:03.000Z","updated_at":"2024-08-18T19:01:07.000Z","dependencies_parsed_at":"2024-06-27T05:43:36.890Z","dependency_job_id":"68abf210-7b38-44fb-993c-29c8e1ec0567","html_url":"https://github.com/andrewgjohnson/imagegradientrectangle","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"966fd4e84f6eaeca981fb2603c31551cd49176ca"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/andrewgjohnson/imagegradientrectangle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgjohnson%2Fimagegradientrectangle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgjohnson%2Fimagegradientrectangle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgjohnson%2Fimagegradientrectangle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgjohnson%2Fimagegradientrectangle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewgjohnson","download_url":"https://codeload.github.com/andrewgjohnson/imagegradientrectangle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgjohnson%2Fimagegradientrectangle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28662129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["composer","gd","graphics","image","images","php"],"created_at":"2024-09-24T20:52:40.198Z","updated_at":"2026-01-22T11:33:34.987Z","avatar_url":"https://github.com/andrewgjohnson.png","language":"PHP","funding_links":["https://github.com/sponsors/andrewgjohnson","https://patreon.com/agjgd","https://patreon.com/agjopensource"],"categories":[],"sub_categories":[],"readme":"# imagegradientrectangle\r\n\r\n[![MIT License](https://img.shields.io/badge/license-MIT-0366d6.png?colorB=0366d6\u0026style=flat-square)](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/LICENSE)\r\n[![Current Release](https://img.shields.io/github/release/andrewgjohnson/imagegradientrectangle.png?colorB=0366d6\u0026style=flat-square\u0026logoColor=white\u0026logo=github)](https://github.com/andrewgjohnson/imagegradientrectangle/releases)\r\n[![Contributors](https://img.shields.io/github/contributors/andrewgjohnson/imagegradientrectangle.png?colorB=0366d6\u0026style=flat-square\u0026logoColor=white\u0026logo=github)](https://github.com/andrewgjohnson/imagegradientrectangle/graphs/contributors)\r\n[![Packagist Downloads](https://img.shields.io/packagist/dt/andrewgjohnson/imagegradientrectangle.png?colorB=0366d6\u0026style=flat-square\u0026logoColor=white\u0026logo=packagist)](https://packagist.org/packages/andrewgjohnson/imagegradientrectangle/stats)\r\n[![Issues](https://img.shields.io/github/issues/andrewgjohnson/imagegradientrectangle.png?colorB=0366d6\u0026style=flat-square\u0026logoColor=white\u0026logo=github)](https://github.com/andrewgjohnson/imagegradientrectangle/issues)\r\n[![Patreon](https://imagegradientrectangle.agjgd.org/documentation/imagegradientrectangle.agjgd.org/images/patreon-badge.png)](https://patreon.com/agjopensource)\r\n\r\n\u003cp align=\"center\"\u003e\u003ca href=\"https://imagegradientrectangle.agjgd.org/\" title=\"\"\u003e\u003cimg src=\"https://imagegradientrectangle.agjgd.org/documentation/imagegradientrectangle.agjgd.org/images/avatar.png\" alt=\"\" title=\"\" width=\"400\" id=\"avatar\" /\u003e\u003c/a\u003e\u003c/p\u003e\r\n\r\n## Description\r\n\r\n**imagegradientrectangle** is a function that will draw a gradient filled rectangle on your PHP GD images.\r\n\r\n[![Patreon - Become a Patron](https://raster.shields.io/badge/Patreon%20-become%20a%20Patron-FD334A.png?style=for-the-badge\u0026logo=patreon\u0026logoColor=FD334A)](https://patreon.com/agjopensource)\r\n\r\n**imagegradientrectangle** is an [agjgd](https://agjgd.org) project.\r\n\r\n## Usage\r\n\r\n### With Composer\r\n\r\nThis project offers support for the [Composer](https://getcomposer.org/) dependency manager. You can find the imagegradientrectangle package online on [packagist.org](https://packagist.org/packages/andrewgjohnson/imagegradientrectangle).\r\n\r\n#### Install using Composer\r\n\r\nEither run this command:\r\n\r\n    composer require andrewgjohnson/imagegradientrectangle\r\n\r\nor add this to the `require` section of your composer.json file:\r\n\r\n    \"andrewgjohnson/imagegradientrectangle\": \"1.*\"\r\n\r\n### Without Composer\r\n\r\nTo use without Composer add an [include](http://php.net/manual/function.include.php) to the [`imagegradientrectangle.php` source file](https://raw.githubusercontent.com/andrewgjohnson/imagegradientrectangle/master/source/imagegradientrectangle.php).\r\n\r\n    include_once 'source/imagegradientrectangle.php';\r\n\r\n## Examples\r\n\r\n    // standard method to draw a red filled rectangle\r\n    $red = imagecolorallocate($im, 0xFF, 0x00, 0x00);\r\n    imagefilledrectangle($im, 10, 10, 100, 100, $red);\r\n\r\n    // standard method to draw a blue filled rectangle\r\n    $blue = imagecolorallocate($im, 0x00, 0x00, 0xFF);\r\n    imagefilledrectangle($im, 10, 10, 100, 100, $blue);\r\n\r\n    // this will draw a red-to-blue gradient filled rectangle\r\n    $red = imagecolorallocate($im, 0xFF, 0x00, 0x00);\r\n    $blue = imagecolorallocate($im, 0x00, 0x00, 0xFF);\r\n    imagegradientrectangle($im, 10, 10, 100, 100, $red, $blue);\r\n\r\nThere are [other examples](https://github.com/andrewgjohnson/imagegradientrectangle/tree/master/examples) included in the GitHub repository and on [imagegradientrectangle.agjgd.org](https://imagegradientrectangle.agjgd.org/examples/).\r\n\r\n## Help Requests\r\n\r\nPlease post any questions in the [discussions area](https://github.com/andrewgjohnson/imagegradientrectangle/discussions) on GitHub if you need help.\r\n\r\nIf you discover a bug please [enter an issue](https://github.com/andrewgjohnson/imagegradientrectangle/issues/new) on GitHub. When submitting an issue please use our [issue template](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/ISSUE_TEMPLATE.md).\r\n\r\n## Contributing\r\n\r\nPlease read our [contributing guidelines](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/CONTRIBUTING.md) if you want to contribute.\r\n\r\nYou can contribute financially by becoming a [patron](https://patreon.com/agjopensource) at [patreon.com/agjopensource](https://patreon.com/agjopensource) to support imagegradientrectangle and [other agjgd.org projects](https://agjgd.org/projects/).\r\n\r\n[![Patreon - Become a Patron](https://raster.shields.io/badge/Patreon%20-become%20a%20Patron-FD334A.png?style=for-the-badge\u0026logo=patreon\u0026logoColor=FD334A)](https://patreon.com/agjopensource)\r\n\r\n## Acknowledgements\r\n\r\nThis project was started by [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson).\r\n\r\nFull list of contributors:\r\n * [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson)\r\n\r\nOur [security policies and procedures](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/.github/SECURITY.md) comes via the [atomist/samples](https://github.com/atomist/samples/blob/master/SECURITY.md) project. Our [issue templates](https://github.com/andrewgjohnson/imagegradientrectangle/tree/master/.github/ISSUE_TEMPLATE) comes via the [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) project. Our [pull request template](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/.github/PULL_REQUEST_TEMPLATE.md) comes via the [stevemao/github-issue-templates](https://github.com/stevemao/github-issue-templates) project. The [mountains photo](https://unsplash.com/photos/qJvpykJ5SKs) comes via [Gabriel Garcia Marengo](https://unsplash.com/@gabrielgm).\r\n\r\n## Changelog\r\n\r\nYou can find all notable changes in the [changelog](https://github.com/andrewgjohnson/imagegradientrectangle/blob/master/CHANGELOG.md).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewgjohnson%2Fimagegradientrectangle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewgjohnson%2Fimagegradientrectangle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewgjohnson%2Fimagegradientrectangle/lists"}