{"id":20918229,"url":"https://github.com/almazrafi/urlquerycoder","last_synced_at":"2025-12-29T16:34:41.055Z","repository":{"id":58291446,"uuid":"530614999","full_name":"almazrafi/URLQueryCoder","owner":"almazrafi","description":"Fast URL query encoder / decoder for Swift Codable types","archived":false,"fork":false,"pushed_at":"2022-11-03T13:24:46.000Z","size":82,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T18:20:25.119Z","etag":null,"topics":["carthage","cocoapods","codable","decodable","encodable","ios","macos","spm","swift","tvos","url","url-query","watchos","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/almazrafi.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-08-30T10:56:01.000Z","updated_at":"2024-11-02T17:58:38.000Z","dependencies_parsed_at":"2022-08-31T16:21:19.055Z","dependency_job_id":null,"html_url":"https://github.com/almazrafi/URLQueryCoder","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FURLQueryCoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FURLQueryCoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FURLQueryCoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almazrafi%2FURLQueryCoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almazrafi","download_url":"https://codeload.github.com/almazrafi/URLQueryCoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225209314,"owners_count":17438214,"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":["carthage","cocoapods","codable","decodable","encodable","ios","macos","spm","swift","tvos","url","url-query","watchos","xcode"],"created_at":"2024-11-18T16:38:13.483Z","updated_at":"2025-12-29T16:34:41.049Z","avatar_url":"https://github.com/almazrafi.png","language":"Swift","readme":"# URLQueryCoder\n[![Build Status](https://github.com/almazrafi/URLQueryCoder/workflows/CI/badge.svg)](https://github.com/almazrafi/URLQueryCoder/actions)\n[![Codecov](https://codecov.io/gh/almazrafi/URLQueryCoder/branch/main/graph/badge.svg?token=DRFk9RWXWB)](https://codecov.io/gh/almazrafi/URLQueryCoder)\n[![Cocoapods](https://img.shields.io/cocoapods/v/URLQueryCoder)](http://cocoapods.org/pods/URLQueryCoder)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![SPM compatible](https://img.shields.io/badge/SPM-Compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager/)\n[![Platforms](https://img.shields.io/cocoapods/p/URLQueryCoder)](https://developer.apple.com/discover/)\n[![Xcode](https://img.shields.io/badge/Xcode-16-blue)](https://developer.apple.com/xcode)\n[![Swift](https://img.shields.io/badge/Swift-5.9-orange)](https://swift.org)\n[![License](https://img.shields.io/github/license/almazrafi/URLQueryCoder)](https://opensource.org/licenses/MIT)\n\n## Requirements\n- iOS 13.0+ / macOS 11.5+ / watchOS 6.0+ / tvOS 13.0+\n- Xcode 16.4+\n- Swift 5.9+\n\n## Usage\n```swift\nstruct User: Codable {\n   var id: Int\n   var name: String\n}\n\n// Encode to URL query\nlet user = User(id: 123, name: \"Neo\")\nlet query = try URLQueryEncoder().encode(user)\n\n// Decode from URL query\nlet query = \"id=123\u0026name=Neo\"\nlet user = try URLQueryDecoder().decode(User.self, from: query)\n```\n\n## Installation\n### Swift Package Manager\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nTo integrate URLQueryCoder into your Xcode project using Swift Package Manager,\nadd the following as a dependency to your `Package.swift`:\n``` swift\n.package(url: \"https://github.com/almazrafi/URLQueryCoder.git\", from: \"1.2.0\")\n```\nand then specify `\"URLQueryCoder\"` as a dependency of the Target in which you wish to use URLQueryCoder.\n\nHere's an example `Package.swift`:\n``` swift\n// swift-tools-version:5.9\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyPackage\",\n    products: [\n        .library(name: \"MyPackage\", targets: [\"MyPackage\"])\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/almazrafi/URLQueryCoder.git\", from: \"1.2.0\")\n    ],\n    targets: [\n        .target(name: \"MyPackage\", dependencies: [\"URLQueryCoder\"])\n    ]\n)\n```\n\n### Carthage\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with Homebrew using the following command:\n``` bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate URLQueryCoder into your Xcode project using Carthage, specify it in your `Cartfile`:\n``` ogdl\ngithub \"almazrafi/URLQueryCoder\" ~\u003e 1.2.0\n```\n\nFinally run `carthage update` to build the framework and drag the built `URLQueryCoder.framework` into your Xcode project.\n\n### CocoaPods\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n``` bash\n$ gem install cocoapods\n```\n\nTo integrate URLQueryCoder into your Xcode project using [CocoaPods](http://cocoapods.org), specify it in your `Podfile`:\n``` ruby\nplatform :ios, '13.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'URLQueryCoder'\nend\n```\n\nFinally run the following command:\n``` bash\n$ pod install\n```\n\n## Communication\n- If you need help, open an issue.\n- If you found a bug, open an issue.\n- If you have a feature request, open an issue.\n- If you want to contribute, submit a pull request.\n\n## License\nURLQueryCoder is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmazrafi%2Furlquerycoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmazrafi%2Furlquerycoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmazrafi%2Furlquerycoder/lists"}