An open API service indexing awesome lists of open source software.

https://github.com/0xwdg/phpframework

A Swift framework to use the most common PHP functions (Based on PHP7)
https://github.com/0xwdg/phpframework

0xwdg php php-framework swift swift-library swiftlang

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# PHPFramework

**PHP In Swift**

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

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FPHPFramework%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/0xWDG/PHPFramework)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FPHPFramework%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/0xWDG/PHPFramework)
[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)
![License](https://img.shields.io/github/license/0xWDG/PHPFramework)

\* 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)

```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 **File** โ†’ **Swift Packages** โ†’ **Add Package Dependency...**
2. Paste the repository URL (`https://github.com/0xWDG/PHPFramework`) and click **Next**.
3. Click **Finish**.

# Supported PHP Functions

StatusTODOItem

  • [x] 3924 of 3924
0Predefined Constants
  • [x] 57 of 57
0Supported PHP Options/info functions
  • [ ] 90 of 98
8Supported string functions
  • [ ] 3 of 79
76Supported Array Functions
  • [x] 34 of 34
0Supported Variable Functions
  • [ ] 0 of 51
51Supported DateTime Functions
  • [x] 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](https://bsky.app/profile/0xWDG.bsky.social)
๐Ÿ˜ [mastodon.social/@0xWDG](https://mastodon.social/@0xWDG)
๐Ÿฆ [@0xWDG](https://x.com/0xWDG)
๐Ÿงต [@0xWDG](https://www.threads.net/@0xWDG)
๐ŸŒ [wesleydegroot.nl](https://wesleydegroot.nl)
๐Ÿค– [Discord](https://discordapp.com/users/918438083861573692)

Interested learning more about Swift? [Check out my blog](https://wesleydegroot.nl/blog/).