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

ActiveLibrary

hiz-grup/laravel-scorm
======================

PEOPLEAPS scorm package

4.0.2(1y ago)03201MITPHPPHP ^7.4 || ^8.0

Since Apr 23Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (2)Versions (39)Used By (1)

Laravel Scorm Handler (DISCONTINUE)
===================================

[](#laravel-scorm-handler-discontinue)

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

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

[![N|Solid](https://camo.githubusercontent.com/7a3c65e109ebb3744896fd05f729f0f95f631929be9e4a7ffa5ee2797cb7ddf9/68747470733a2f2f70656f706c656170732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032302f31312f70322d30312d30312e706e67)](https://www.peopleaps.com)

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 v1)

```
composer require devianl2/laravel-scorm:"^3.0"
```

Install from composer (For flysystem v2/v3)

```
composer require devianl2/laravel-scorm
```

Step 2:
-------

[](#step-2)

Run vendor publish for migration and config file

```
php artisan vendor:publish --provider="Peopleaps\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

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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 ~35 days

Recently: every ~199 days

Total

38

Last Release

527d ago

Major Versions

1.0.15 → 2.02021-05-06

2.0.6 → 3.02022-02-11

3.0.9 → 4.0.02022-09-28

3.x-dev → 4.0.12022-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f37320a0bbe00822bba37c698920c079aa513835523984edfbdd6d3edb2cfc5?d=identicon)[1anil21](/maintainers/1anil21)

---

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)")[![acaliskol](https://avatars.githubusercontent.com/u/17302054?v=4)](https://github.com/acaliskol "acaliskol (1 commits)")[![CThomas87](https://avatars.githubusercontent.com/u/801969?v=4)](https://github.com/CThomas87 "CThomas87 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)

PHPackages © 2026

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