djoudi / Laravel-H5P

H5P Package for Laravel Framework
MIT License
21 stars 45 forks source link

Trying to get it working #36

Open csb346 opened 4 years ago

csb346 commented 4 years ago

Hi! I'm trying to use your package to finally get H5P content integrated on a laravel project.

I tried some approaches and I can't get it working properly :(

If I try to require it on a laravel 5.7 or 5.8 instance, I always get a composer error:

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • djoudi/laravel-h5p 1.0 requires laravel/framework 5.5.* -> satisfiable by laravel/framework[5.5.x-dev].
  • Conclusion: don't install laravel/framework 5.5.x-dev
  • Can only install one of: laravel/framework[v5.8.30, 5.7.x-dev].
  • Can only install one of: laravel/framework[5.7.x-dev, v5.8.30].
  • Can only install one of: laravel/framework[5.7.x-dev, v5.8.30].
  • djoudi/laravel-h5p 1.0.x-dev requires laravel/framework 5.7.* -> satisfiable by laravel/framework[5.7.x-dev].
  • Installation request for djoudi/laravel-h5p ^1.0 -> satisfiable by djoudi/laravel-h5p[1.0, 1.0.x-dev].
  • Installation request for laravel/framework (locked at v5.8.30, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.30].

Even i a new laravel instance.

Then I tried to do it on a laravel 5.5 instance. I got this installed but I simply can't get the proper layout working (as I saw in some screenshots here), neither i can access the create page where I get the H5PFrameworkInterface compatibility error reported here: https://github.com/djoudi/Laravel-H5P/issues/12

I'm on this subject for quite a while now. Any help please. Thanks.

pidab commented 4 years ago

I'm still getting the same error about H5PFrameworkInterface. I had a little more success using version 2.0 of this package with Laravel 5.8, but didn't manage to upload a library or create a content yet.

Moving the css and js folders inside the assets folder should fix the layout problem.