{"id":15277448,"url":"https://github.com/totoprayogo1916/codeigniter4-cart","last_synced_at":"2025-10-06T18:32:14.679Z","repository":{"id":61242054,"uuid":"549584010","full_name":"totoprayogo1916/CodeIgniter4-Cart","owner":"totoprayogo1916","description":"Cart Library for Codeigniter 4 (Originally from CodeIgniter3)","archived":false,"fork":true,"pushed_at":"2024-02-20T03:26:37.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-14T18:43:31.133Z","etag":null,"topics":["cart","codeigniter4","codeigniter4-library","shopping","shopping-cart"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bcit-ci/ci3-cart-library","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totoprayogo1916.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":"2022-10-11T12:14:26.000Z","updated_at":"2023-10-17T02:52:20.000Z","dependencies_parsed_at":"2023-01-22T18:45:10.801Z","dependency_job_id":null,"html_url":"https://github.com/totoprayogo1916/CodeIgniter4-Cart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoprayogo1916%2FCodeIgniter4-Cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoprayogo1916%2FCodeIgniter4-Cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoprayogo1916%2FCodeIgniter4-Cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totoprayogo1916%2FCodeIgniter4-Cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totoprayogo1916","download_url":"https://codeload.github.com/totoprayogo1916/CodeIgniter4-Cart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235542253,"owners_count":19006820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cart","codeigniter4","codeigniter4-library","shopping","shopping-cart"],"created_at":"2024-09-30T11:06:28.821Z","updated_at":"2025-10-06T18:32:09.355Z","avatar_url":"https://github.com/totoprayogo1916.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter 4 Cart Library\n\nThe Cart Library originally from CodeIgniter 3.\n\n## Usage\nFeel free to read the original: https://codeigniter.com/userguide3/libraries/cart.html \n\n ```php\n use Totoprayogo1916\\CodeIgniter\\Libraries\\Cart;\n\n $cart = new Cart();\n \n // Insert an array of values\n $cart-\u003einsert([\n    'id'      =\u003e 'sku_1234ABCD',\n    'qty'     =\u003e 1,\n    'price'   =\u003e '19.56',\n    'name'    =\u003e 'T-Shirt',\n    'options' =\u003e ['Size' =\u003e 'L', 'Color' =\u003e 'Red']\n]);\n \n // Update an array of values\n $cart-\u003eupdate([\n    'rowid'   =\u003e '4166b0e7fc8446e81e16883e9a812db8',\n    'id'      =\u003e 'sku_1234ABCD',\n    'qty'     =\u003e 3,\n    'price'   =\u003e '24.89',\n    'name'    =\u003e 'T-Shirt',\n    'options' =\u003e ['Size' =\u003e 'L', 'Color' =\u003e 'Red']\n]);\n\n// Get the total items.\n$cart-\u003etotal_items();\n\n// Remove an item using its `rowId`\n$cart-\u003eremove('4166b0e7fc8446e81e16883e9a812db8');\n   \n// Clear the shopping cart\n$cart-\u003edestroy();\n\n// Get the cart contents as an array\n$cart-\u003econtents();\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotoprayogo1916%2Fcodeigniter4-cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotoprayogo1916%2Fcodeigniter4-cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotoprayogo1916%2Fcodeigniter4-cart/lists"}