Skip to content

0xWDG/PHPFramework

Repository files navigation

PHPFramework

PHP In Swift

A Swift framework to use the most common PHP functions (Based on PHP7)

Swift Package Manager License

* 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!

Requirements

  • Swift 5.9+ (Xcode 15+)
  • iOS 13+, macOS 10.15+

Installation (Pakage.swift)

dependencies: [
    .package(url: "https://github.com/0xWDG/PHPFramework.git", branch: "main"),
],
targets: [
    .target(name: "MyTarget", dependencies: [
        .product(name: "PHPFramework", package: "PHPFramework"),
    ]),
]

Installation (Xcode)

  1. In Xcode, open your project and navigate to FileSwift PackagesAdd Package Dependency...
  2. Paste the repository URL (https://github.com/0xWDG/PHPFramework) and click Next.
  3. Click Finish.

Supported PHP Functions

StatusTODOItem
  • 3924 of 3924
0Predefined Constants
  • 57 of 57
0Supported PHP Options/info functions
  • 90 of 98
8Supported string functions
  • 3 of 79
76Supported Array Functions
  • 34 of 34
0Supported Variable Functions
  • 0 of 51
51Supported DateTime Functions
  • 9 of 9
0Supported Directory Functions
  • 0 of 81
81Supported FileSystem Functions



  • 193 of 409
216Functions 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)

Contact

🦋 @0xWDG 🐘 mastodon.social/@0xWDG 🐦 @0xWDG 🧵 @0xWDG 🌐 wesleydegroot.nl 🤖 Discord

Interested learning more about Swift? Check out my blog.