PHPackages                             hikarine3/py2php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hikarine3/py2php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hikarine3/py2php
================

Use python naming function in PHP

1.0(7y ago)112MITPHPPHP &gt;=7.1.0

Since Jan 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hikarine3/py2php)[ Packagist](https://packagist.org/packages/hikarine3/py2php)[ Docs](https://github.com/hikarine3/py2php)[ RSS](/packages/hikarine3-py2php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

What is this
============

[](#what-is-this)

This package provides the same function naming with python for php to reduce switching cost. though the function for the object may be defined just as a function becauase the type of python and php is different.

ex. Python: string.lower =&gt; PHP: lower(string)

How to install it
=================

[](#how-to-install-it)

add

```
    "require": {
        ...
        "hikarine3/py2php": "*",
        ...
    }

```

to composer.json

How to use
==========

[](#how-to-use)

```
$py2php = new Py2php();
$string = "ABC";
print($py2php->lower($string));

```

Supported function
==================

[](#supported-function)

php =&gt; py2php

strtolower =&gt; lower

How to test
===========

[](#how-to-test)

composer test tests;

Author
======

[](#author)

Hajime Kurita

An adminstrator of  ,  and so on

Twitter:

JP:

EN:

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea5ccc560eb101b578e909fc715d656dce92dcb727350ddd1068076f512833e3?d=identicon)[hikarine3](/maintainers/hikarine3)

---

Top Contributors

[![hikarine3](https://avatars.githubusercontent.com/u/197538?v=4)](https://github.com/hikarine3 "hikarine3 (4 commits)")

---

Tags

phppythonpython2php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hikarine3-py2php/health.svg)

```
[![Health](https://phpackages.com/badges/hikarine3-py2php/health.svg)](https://phpackages.com/packages/hikarine3-py2php)
```

###  Alternatives

[swoole/phpy

Connecting the Python and PHP ecosystems together

6376.4k1](/packages/swoole-phpy)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
