https://github.com/ky1vstar/urlencodedformkit
Parse and serialize url-encoded form data with Codable support
https://github.com/ky1vstar/urlencodedformkit
Last synced: 3 months ago
JSON representation
Parse and serialize url-encoded form data with Codable support
- Host: GitHub
- URL: https://github.com/ky1vstar/urlencodedformkit
- Owner: ky1vstar
- License: mit
- Created: 2021-03-01T14:17:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T13:11:31.000Z (about 4 years ago)
- Last Synced: 2025-02-06T13:51:52.064Z (3 months ago)
- Language: Swift
- Homepage: https://ky1vstar.dev/URLEncodedFormKit/
- Size: 315 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URLEncodedFormKit

[](#cocoapods)
[](#carthage)
[](#swift-package-manager)[](https://github.com/ky1vstar/URLEncodedFormKit/actions/workflows/ci_apple.yml)
[](https://github.com/ky1vstar/URLEncodedFormKit/actions/workflows/ci_linux.yml)
[](https://github.com/ky1vstar/URLEncodedFormKit/actions/workflows/ci_windows.yml)This library includes both encoder and decoder for `application/x-www-form-urlencoded` data. Source codes are owned by [Vapor](https://github.com/vapor/vapor/tree/main/Sources/Vapor/URLEncodedForm). I just decided to redistribute it as separate library and provide package managers and CI support.
## Installation
### CocoaPods
URLEncodedFormKit is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```bash
pod 'URLEncodedFormKit'
```### Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
To integrate URLEncodedFormKit into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "ky1vstar/URLEncodedFormKit"
```Run `carthage update` to build the framework and drag the built `URLEncodedFormKit.framework` into your Xcode project.
On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase” and add the Framework path as mentioned in [Carthage Getting started Step 4, 5 and 6](https://github.com/Carthage/Carthage/blob/master/README.md#if-youre-building-for-ios-tvos-or-watchos)
### Swift Package Manager
To integrate using Apple's [Swift Package Manager](https://swift.org/package-manager/), add the following as a dependency to your `Package.swift`:
```swift
dependencies: [
.package(url: "https://github.com/ky1vstar/URLEncodedFormKit.git", from: "1.0.0")
]
```Alternatively navigate to your Xcode project, select `Swift Packages` and click the `+` icon to search for `URLEncodedFormKit`.
### Manually
If you prefer not to use any of the aforementioned dependency managers, you can integrate URLEncodedFormKit into your project manually. Simply drag the `Sources` Folder into your Xcode project.
## License
[Vapor's project MIT License](https://github.com/vapor/vapor/blob/main/LICENSE)