Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

adrian-the-git/python-php

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python PHP

Have you ever wished that the Python standard library had the power and flexibilty of PHP? Now it is as simple as import php

Installation

Python PHP can be installed using pip

$ pip install -e git+git@github.com:joshmaker/python-php.git#egg=python-php

Usage

To access PHP functions in Python, simply import the php module and get started.

import php

php.str_replace('Python', 'PHP', 'Hello World of Python')
# Output: u'Hello World of PHP'

Python PHP supports the following types: int, string, list, and dictionaries

Testing

Of course Python-PHP has unit tests! How else would we know that it is safe to use? Run tests with $ python tests.py

Compatibility

Python-PHP is currently only compatible with Python 2.7

Is this really a good idea

What could possibly go wrong?

About

Access the power and flexibility of PHP from within Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.