PHP In Swift
A Swift framework to use the most common PHP functions (Based on PHP7)
* Please note, this project contains a lot of Swift4 code, i started this project when i started Swift around 8 years ago, the quality is sub-optimal. In 2025 I made it a SPM Package, and i'll try to get some more things working, I appreciate any help you can provide!
- Swift 5.9+ (Xcode 15+)
- iOS 13+, macOS 10.15+
dependencies: [
.package(url: "https://github.com/0xWDG/PHPFramework.git", branch: "main"),
],
targets: [
.target(name: "MyTarget", dependencies: [
.product(name: "PHPFramework", package: "PHPFramework"),
]),
]
- In Xcode, open your project and navigate to File → Swift Packages → Add Package Dependency...
- Paste the repository URL (
https://github.com/0xWDG/PHPFramework
) and click Next. - Click Finish.
Status | TODO | Item |
| 0 | Predefined Constants |
| 0 | Supported PHP Options/info functions |
| 8 | Supported string functions |
| 76 | Supported Array Functions |
| 0 | Supported Variable Functions |
| 51 | Supported DateTime Functions |
| 0 | Supported Directory Functions |
| 81 | Supported FileSystem Functions |
| 216 | Functions total build (± 44%) |
Please note: this list will be updated once upon a time, this list may not be the most recent, please go to the specific item for the latest info
Last update: 02-JAN-2025 GMT+1 (Europe/Amsterdam)
🦋 @0xWDG 🐘 mastodon.social/@0xWDG 🐦 @0xWDG 🧵 @0xWDG 🌐 wesleydegroot.nl 🤖 Discord
Interested learning more about Swift? Check out my blog.