PHPackages                             weew/helpers-object - 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. weew/helpers-object

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

weew/helpers-object
===================

Collection of helper functions for objects.

v1.1.1(9y ago)0811MITPHP

Since Mar 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/weew/helpers-object)[ Packagist](https://packagist.org/packages/weew/helpers-object)[ RSS](/packages/weew-helpers-object/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Common php helpers
==================

[](#common-php-helpers)

[![Build Status](https://camo.githubusercontent.com/761f7c9710d94cc2bbc2a9290ecf94d7e4000be5e586ced5b5fd42380dd223e8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f68656c706572732d6f626a6563742e737667)](https://travis-ci.org/weew/helpers-object)[![Test Coverage](https://camo.githubusercontent.com/cc55773034029395bdce9f72c77eb98cc5481ebe7a0a916e35b968cac44d4b00/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f68656c706572732d6f626a6563742e737667)](https://coveralls.io/github/weew/helpers-object)[![Version](https://camo.githubusercontent.com/0e78b2029748e9ca9b4e8ef9b217c547549459ca91e6c12b748cdacf032ebd99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f68656c706572732d6f626a6563742e737667)](https://packagist.org/packages/weew/helpers-object)[![Licence](https://camo.githubusercontent.com/a29ded974ce3bb9d5241066e61633cbd3d8c73814298dfa36dc48b1a739f87e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f68656c706572732d6f626a6563742e737667)](https://packagist.org/packages/weew/helpers-object)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Functions](#functions)
    - [sclone](#sclone)

Installation
------------

[](#installation)

`composer require weew/helpers-object`

Introduction
------------

[](#introduction)

This tiny library provides various useful helper functions to deal with objects.

Functions
---------

[](#functions)

#### sclone

[](#sclone)

Safely clones a value using the `clone` function if it is an object, simply returns the value otherwise.

`mixed sclone(mixed $value)`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Every ~64 days

Total

3

Last Release

3586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weew-helpers-object/health.svg)

```
[![Health](https://phpackages.com/badges/weew-helpers-object/health.svg)](https://phpackages.com/packages/weew-helpers-object)
```

###  Alternatives

[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)

PHPackages © 2026

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