# Userland API leveraging the 'php' namespace

- Thread: https://externals.io/message/74668
- Original archive: https://news-web.php.net/php.internals/74668
- Started by Thomas Gossmann on 2014-06-01T16:56:27+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #74668 — Thomas Gossmann — 2014-06-01T16:56:27+00:00

URL: https://externals.io/message/74668#74668

Hello,

this is my first post to this group, so I hope this is the right place.

One day, I started working on an API, which I thought, would be cool to 
be the official php API. I was roughly adding some code together to 
imagine how this API will look like (nothing which would need to working 
for that case). I considered this as a huge playground for me. Lately I 
thought, this is worth sharing with others and from the early feedback, 
I'm not alone ;)

The idea is to work on a polyfill changing the userland API with the 
goal to make it official when the polyfill is stable. So, I wrote some 
lines together and shared it at PHP-FIG first (a couple of weeks ago).

Here are the goals for this project:
- Standardize function calls
- Wrap 'resource' types in classes
- Provide php functionality in an OOP fashion
- Add missing langauge features (hint collections)
- Primitives as Objects
- Offer more type hinting

More details on the repo and the readme:
https://github.com/gossi/oophp

In this mailing-list I also see similar requests and also found 
references to what I had in mind, which I collected at the repo.

For now, I'd like to hear your feedback about this and how to possibly 
proceed further with this.

Thank you very much
gossi

---

## #74670 — Andrea Faulds — 2014-06-01T18:48:11+00:00

URL: https://externals.io/message/74668#74670 · In reply to: #74668

> Here are the goals for this project:
> - Standardize function calls
> - Wrap 'resource' types in classes
> - Provide php functionality in an OOP fashion
> - Add missing langauge features (hint collections)
> - Primitives as Objects
> - Offer more type hinting
> 
> More details on the repo and the readme:
> https://github.com/gossi/oophp

Hi, other people are already working on methods for scalars, rossriley for example:

https://github.com/rossriley/php-scalar-objects

I’ve contributed myself to that repository. Would you consider working with them?

Nikita also has his own incomplete proposals for scalar object functions.
--
Andrea Faulds
http://ajf.me/
