PHPackages                             motiontactic/sage-flex - 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. motiontactic/sage-flex

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

motiontactic/sage-flex
======================

Extends Sage Acorn to add commands to scaffold flexible components quickly

1.3(2y ago)2150MITPHPPHP &gt;=7.1

Since Aug 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mt-gareth/sage-flex)[ Packagist](https://packagist.org/packages/motiontactic/sage-flex)[ RSS](/packages/motiontactic-sage-flex/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

PHP Library: SAGE-FLEX
======================

[](#php-library-sage-flex)

[![Latest Stable Version](https://camo.githubusercontent.com/cd88a2735164ab51a7acba60fa68bc9a48b948e3e7c3098307d6744efee18b89/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74696f6e7461637469632f736167652d666c65782f762f737461626c65)](https://packagist.org/packages/motiontactic/sage-flex)[![Total Downloads](https://camo.githubusercontent.com/b764d9186bfc5de740e882e77835e03ac12104bfe947c5155bbb995a297304d9/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74696f6e7461637469632f736167652d666c65782f646f776e6c6f616473)](https://packagist.org/packages/motiontactic/sage-flex)[![License](https://camo.githubusercontent.com/9a0a1dc9065146639e0495966ff0d88ea544388ea8b36d5a4b10ff52972f7165/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74696f6e7461637469632f736167652d666c65782f6c6963656e7365)](https://packagist.org/packages/motiontactic/sage-flex)

Extends Sage Acorn to add commands to scaffold flexible components quickly

Install
-------

[](#install)

In sage theme run

```
composer require motiontactic/sage-flex

```

To publish files that are used in most sites run:

```
wp acorn publish:mt

```

these files will be added or updated:

```
/app/View/Composers/Flex.php
/resources/assets/scripts/app.js
/resources/assets/styles/app.scss
/resources/assets/scripts/flex/index.js
/resources/assets/styles/flex/index.scss

/resources/assets/scripts/common/index.js
/resources/assets/scripts/common/responsive-bgs.js

/resources/assets/styles/common/fonts.scss
/resources/assets/styles/common/global.scss
/resources/assets/styles/common/grid.scss
/resources/assets/styles/common/index.scss
/resources/assets/styles/common/mixins.scss
/resources/assets/styles/common/spacing-modifiers.scss
/resources/assets/styles/common/variables.scss

/resources/views/partials/bg.blade.php
/resources/views/partials/content-page.blade.php

mu-plugins/site.php
mu-plugins/site/composer.json
mu-plugins/site/advanced-custom-fields-pro

```

Usage
-----

[](#usage)

### Commands

[](#commands)

#### Main Scaffolding Command

[](#main-scaffolding-command)

```
wp acorn make:flex ComponentName

```

Where ComponentName is the name of the new flexible component you would like made, should be in CamelCase.

```
wp acorn remove:flex ComponentName

```

Where ComponentName is the name of the old flexible component you would like removed, should be in CamelCase.

#### Other Commands

[](#other-commands)

```
wp acorn make:flex-controller ComponentName
wp acorn make:flex-script ComponentName
wp acorn make:flex-style ComponentName
wp acorn make:flex-template ComponentName

wp acorn remove:flex-controller ComponentName
wp acorn remove:flex-script ComponentName
wp acorn remove:flex-style ComponentName
wp acorn remove:flex-template ComponentName

```

Each command makes or removes a single file.

```
wp acorn publish:flex
wp acorn publish:base-files
wp acorn publish:acf

```

Each command published files that are used on most sites.

#### An Optional Template Can Be Added To Any Make Command

[](#an-optional-template-can-be-added-to-any-make-command)

```
wp acorn make:flex ComponentName template

```

Where template is the name of the template you would like to be used, if omitted a default is used.

#### Template Options

[](#template-options)

```
default
hero

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~338 days

Total

4

Last Release

777d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47789455?v=4)[mt-gareth](/maintainers/mt-gareth)[@mt-gareth](https://github.com/mt-gareth)

---

Top Contributors

[![mt-gareth](https://avatars.githubusercontent.com/u/47789455?v=4)](https://github.com/mt-gareth "mt-gareth (32 commits)")

### Embed Badge

![Health badge](/badges/motiontactic-sage-flex/health.svg)

```
[![Health](https://phpackages.com/badges/motiontactic-sage-flex/health.svg)](https://phpackages.com/packages/motiontactic-sage-flex)
```

###  Alternatives

[log1x/acf-composer

Create fields, blocks, option pages, and widgets using ACF Builder and Sage 10

504836.0k17](/packages/log1x-acf-composer)[generoi/sage-woocommerce

175285.7k4](/packages/generoi-sage-woocommerce)[supermundano/sage-the-events-calendar

1725.8k](/packages/supermundano-sage-the-events-calendar)[codelight/acf-blocks

414.0k](/packages/codelight-acf-blocks)[mwdelaney/sage-fonts-preload

Automatically preload fonts from the Sage mix manifest

188.5k](/packages/mwdelaney-sage-fonts-preload)[tombroucke/sage-bootstrap-components

Bootstrap 4 components for Sage

113.1k1](/packages/tombroucke-sage-bootstrap-components)

PHPackages © 2026

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