PHPackages                             oktaj1/tsplugin - 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. oktaj1/tsplugin

ActiveLibrary

oktaj1/tsplugin
===============

Your package description

00PHP

Since Feb 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/oktaj1/Laravel-TS-PLUGIN)[ Packagist](https://packagist.org/packages/oktaj1/tsplugin)[ RSS](/packages/oktaj1-tsplugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
TsPlugin
A simple Laravel package to run TypeScript scripts via a button in the application.

nstallation
1. Require the package via Composer
You can add the package to your Laravel project by running:

bash

composer require ff/tsplugin

2. Publish the Assets (Optional)
If the package includes any assets (like JavaScript or CSS), you can publish them to your Laravel application's public directory:

bash

php artisan vendor:publish --tag=public --force
This will copy the assets to public/vendor/tsplugin.

3. Service Provider
The TsPluginServiceProvider will be automatically discovered by Laravel, so you don't need to manually add it to the config/app.php providers array.

Usage
Once installed, you can start using the package in your Laravel application.

Add a Button to Trigger TypeScript Scripts

In any Blade view, you can add a button to trigger the TypeScript script:

html

Run TypeScript Script

Link the Button to TypeScript Script

Add a JavaScript function to handle the button click event and execute the TypeScript script:

js

document.getElementById("run-ts-script").addEventListener("click", function() {
    // Logic to trigger the TypeScript script (you might need to use a route or controller to run it)
});

You will need to define the backend logic for running the TypeScript script via a controller or command. This is where your TypeScript files will be executed.

Configuration (Optional)
If you need to customize the behavior or paths for the TypeScript files, you can update the relevant settings in the package or create a configuration file:

bash

php artisan vendor:publish --tag=tsplugin-config
This will copy the configuration file to config/tsplugin.php.

Testing
To test the package in your own Laravel project:

Follow the installation steps above.
Add the button and script trigger as described in the Usage section.
Ensure that the TypeScript scripts are working as expected.

License
This package is open-sourced software licensed under the MIT license.
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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://www.gravatar.com/avatar/83db591f705773d2e2723f78459c26d2c181aa010889d3f8670a42450c56b0b8?d=identicon)[oktaj1](/maintainers/oktaj1)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/oktaj1-tsplugin/health.svg)

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

PHPackages © 2026

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