PHPackages                             orange-shadow/properties - 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. orange-shadow/properties

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

orange-shadow/properties
========================

Typed properties from any Model in Laravel

0.0.1(9y ago)413MITPHPPHP &gt;=5.4.0

Since Jul 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/orangeShadow/properties)[ Packagist](https://packagist.org/packages/orange-shadow/properties)[ RSS](/packages/orange-shadow-properties/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\[RU\] #Пакет для добавления произвольным моделям, произвольных свойств с Валидацией

- Шаг 1: Подключаем сервис провайдер app/config/app.php `'orangeShadow\properties\PropertiesServiceProvider'`
- Шаг 2: Прогружаем миграции: `php artisan vendor:publish`, `php artisan migrate`
- Шаг 3: Создаем, (предполагается, что модель Page у нас есть)

```
$property = orangeShadow\CustomModelProperties\Model\Property::create(
				[
					"model"=>"Page",
					"code"=>"VIEWS",
					"title"=>"Кол-во просмотров",
					"description"=>"Счетчик просмотра страницы",
					"type"=>"numeric",
					"sort"=>"1",
					"multiple"=>false,
					"required"=>true
				]
		);

```

- Шаг 4: Добавялем к Моделе Page Trait `use orangeShadow\CustomModelProperties\TraitProperty;`
- Шаг 5: Можем задать по коду свойство или получить его

```
$page = App\Page::find(1);
//Задать значение свойства по коду
$page->setPropertyValueByCode('VIEWS',1);
//Получить значение свойства по коду
$page->getPropertyValueByCode('VIEWS');

```

\##Вспомогательные методы TraitProperty:

> Получить весь список свойств текущей модели `getProperties()`

> Получить весь список значений свойств текущей модели `getPropertiesValue`

Если наследоваться от orangeShadow\\CustomModelProperties\\Http\\Requests

```
public function rules()
{
  $rules = parent::relus();
  $rules+=[свои правила];
  return $rules;
}

```

получим валидацию по параметрам properties.code

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3605d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravellaravel5

### Embed Badge

![Health badge](/badges/orange-shadow-properties/health.svg)

```
[![Health](https://phpackages.com/badges/orange-shadow-properties/health.svg)](https://phpackages.com/packages/orange-shadow-properties)
```

###  Alternatives

[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)

PHPackages © 2026

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