PHPackages                             convertiv/laravel-scorm - 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. convertiv/laravel-scorm

ActiveLibrary

convertiv/laravel-scorm
=======================

Convertiv's fork of laravel-scorm

0451↓50%PHP

Since Dec 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Convertiv/laravel-scorm)[ Packagist](https://packagist.org/packages/convertiv/laravel-scorm)[ RSS](/packages/convertiv-laravel-scorm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Scorm Handler
=====================

[](#laravel-scorm-handler)

*Design for Laravel LMS*
------------------------

[](#design-for-laravel-lms)

---

This project was forked from devianl2/laravel-scorm since that package is no longer actively maintained.

---

Laravel Scorm Handler is a laravel package that simplify scorm package contents (zip file) into laravel storage.

Highlight of this package:

- Zipfile handler with auto extract and store sco into database
- Store user CMI data into database
- Get user last learning data

*Things you must know before you install:*
------------------------------------------

[](#things-you-must-know-before-you-install)

1. You have a domain/subdomain to serve scorm content
2. Scorm content folder/path must be outside from laravel application (Security issue).
3. Virtual host to point domain/subdomain to scorm content directory (E.g: /scorm/hashed\_folder\_name/)
4. Uploaded file should have the right permission to extract scorm files into scorm content directory
5. This package will handle folder creation into scorm content directory (E.g: /scorm/{auto\_generated\_hashname}/imsmanifest.xml)

Step 1:
-------

[](#step-1)

Install from composer (For flysystem v2/v3)

```
composer require convertiv/laravel-scorm
```

Step 2:
-------

[](#step-2)

Run vendor publish for migration and config file

```
php artisan vendor:publish --provider="Convertiv\Scorm\ScormServiceProvider"
```

Step 3:
-------

[](#step-3)

Run config cache for update cached configuration

```
php artisan config:cache
```

Step 4:
-------

[](#step-4)

Migrate file to database

```
php artisan migrate
```

Step 5 (Optional):
------------------

[](#step-5-optional)

***Update SCORM config under `config/scorm`***

- update scorm table names.
- update SCORM disk and configure disk @see config/filesystems.php

```
    'disk'  =>  'scorm-local',
    'disk'  =>  'scorm-s3',

 // @see config/filesystems.php
     'disks' => [
         .....
         'scorm-local' => [
            'driver'     => 'local',
            'root'       =>  env('SCORM_ROOT_DIR'), // set root dir
            'visibility' => 'public',
        ],

        's3-scorm' => [
            'driver' => 's3',
            'root'   => env('SCORM_ROOT_DIR'), // set root dir
            'key'    => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_SCORM_BUCKET'),
        ],
        .....
     ]

```

***Update SCORM translations under `resources/lang/en-US/scorm.php`***

- SCORM runtime errors exceptions handler, *(Check next example)*
- Copy and translate error msg with key for other locale as you wish.

*After finishing don't forget to run `php artisan config:cache`*

Step 6 (Optional):
------------------

[](#step-6-optional)

**Usage**

```
class ScormController extends BaseController
{
    /** @var ScormManager $scormManager */
    private $scormManager;
    /**
     * ScormController constructor.
     * @param ScormManager $scormManager
     */
    public function __construct(ScormManager $scormManager)
    {
        $this->scormManager = $scormManager;
    }

    public function show($id)
    {
        $item = ScormModel::with('scos')->findOrFail($id);
        // response helper function from base controller reponse json.
        return $this->respond($item);
    }

    public function store(ScormRequest $request)
    {
        try {
            $scorm = $this->scormManager->uploadScormArchive($request->file('file'));
            // handle scorm runtime error msg
        } catch (InvalidScormArchiveException | StorageNotFoundException $ex) {
            return $this->respondCouldNotCreateResource(trans('scorm.' .  $ex->getMessage()));
        }

        // response helper function from base controller reponse json.
        return $this->respond(ScormModel::with('scos')->whereUuid($scorm['uuid'])->first());
    }

    public function saveProgress(Request $request)
    {
        // TODO save user progress...
    }
}

```

***Upgrade from version 2 to 3:***Update your Scorm table:

- Add entry\_url (varchar 191 / nullable)
- Change hash\_name to title
- Remove origin\_file\_mime field

***Upgrade from version 3 to 4:***Update your Scorm table:

- Add identifier (varchar 191)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.5% 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/2050f94d457dad00182d22f02179dc0a47295cc7980974c8c4f026e7c3d20cac?d=identicon)[brad.mering](/maintainers/brad.mering)

---

Top Contributors

[![devianl2](https://avatars.githubusercontent.com/u/23150573?v=4)](https://github.com/devianl2 "devianl2 (61 commits)")[![KhaledLela](https://avatars.githubusercontent.com/u/3756884?v=4)](https://github.com/KhaledLela "KhaledLela (30 commits)")[![bradmering](https://avatars.githubusercontent.com/u/829674?v=4)](https://github.com/bradmering "bradmering (8 commits)")[![juricaberos](https://avatars.githubusercontent.com/u/111450511?v=4)](https://github.com/juricaberos "juricaberos (6 commits)")[![CThomas87](https://avatars.githubusercontent.com/u/801969?v=4)](https://github.com/CThomas87 "CThomas87 (1 commits)")

### Embed Badge

![Health badge](/badges/convertiv-laravel-scorm/health.svg)

```
[![Health](https://phpackages.com/badges/convertiv-laravel-scorm/health.svg)](https://phpackages.com/packages/convertiv-laravel-scorm)
```

PHPackages © 2026

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