PHPackages                             faisal/shopify-inject - 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. [API Development](/categories/api)
4. /
5. faisal/shopify-inject

ActiveLibrary[API Development](/categories/api)

faisal/shopify-inject
=====================

This package is to inject the content into the shopify liquid files through the shopify admin api. Created for my project an package development. If it is helpful, lets build it more.

02PHP

Since Nov 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/feci77/shopify-inject)[ Packagist](https://packagist.org/packages/faisal/shopify-inject)[ RSS](/packages/faisal-shopify-inject/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Injects Code to Shopify Store Front

\##This package is to inject the content into the shopify liquid files through the shopify admin api.

This package is based on the "osiset/laravel-shopify": "^17.1" package. so you have to install and configure this package first to make it working. Here are the details of *Osiset/laravel-shopify* package. . Please install and configure it completely and then use my package.

It will require the User which is implementing the IShopModel of Osiset. that can be any user with registered domain. If you've any confusion about it, Please go for the osiset docs.

`$injectService = new Shopify\Inject\InjectService(\App\Models\User::first());`

```
//shopify storefront liquid files file path.
$filePath = 'layout/theme.liquid';

//content to be searched. My package will search this string in the given file and update the file with provided content.
$mainContent = '{{ content_for_layout }}';

// provided content to be added before or after the search content
$contentToAdd = " console.log('script added by inject app by editing theme.liquid file'); ";

//calling the function for updating the asset. if it will update it it will return true otherwise false.
if($injectService->updateContentToAsset($filePath,$mainContent,$contentToAdd)){
    return "Content Updated Successfully.";
}else{
    return "Content Already Exists";
}

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15879626?v=4)[Faisal Arif](/maintainers/feci77)[@feci77](https://github.com/feci77)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/faisal-shopify-inject/health.svg)

```
[![Health](https://phpackages.com/badges/faisal-shopify-inject/health.svg)](https://phpackages.com/packages/faisal-shopify-inject)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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