Comments (5)
I would suggest using composer for autoloading. It's in fact already doing it if the library is installed using composer: https://github.com/juho-jaakkola/h5p-php-library/blob/6773f7aad8f95d21c847e12e6ad781e1f8ff26b9/composer.json#L4-L8
Composer currently supports four different autoloading standards: https://getcomposer.org/doc/04-schema.md#autoload
from h5p-php-library.
Yes. When you run composer install
, it automatically creates vendor/autoload.php
file, that you then include in the plugin script.
from h5p-php-library.
Should probably follow PHP FIG when doing this?
from h5p-php-library.
I saw the autoloading in composer, but I'm not sure as to how it works. Will it generate a file that needs to be included in the plugin/module?
from h5p-php-library.
I ended up just cutting them up and using Laravels IoC and a service provider to put them all together since 90% of the classes are singletons
from h5p-php-library.
Related Issues (20)
- h5peditor-select.js - make selected option criteria more flexible
- Is $CFG->mod_hvp_crossorigin documented somewhere? HOT 4
- Separate PHP and JavaScript code HOT 5
- Add triggers for saveContentState/setUserData
- H5P.getUserData not used asynchronously where required HOT 1
- GDPR infringement HOT 1
- Error while playing content in v1.24.3
- When is next release scheduled? HOT 3
- "We will make available documentation and tutorials for creating platform integrations in the future." HOT 2
- H5PExport::createExportFile() performance issues
- Error Uncaught TypeError: Cannot read properties of undefined (reading 'field') HOT 1
- H5PCore in Tag 1.24.4 has a missing function libraryToFolderName HOT 1
- Support for MPEG-DASH format
- [BUG] Invalid argument supplied for foreach()
- Allow using HTML tags MARK and ABBR in H5P content types HOT 5
- [BUG] iframe embeds are not populated in the parent context.
- Class file structure and simplifying integration into a framework HOT 1
- Resizing problems of the container when calling mozRequestFullScreen() HOT 5
- add Moodle comp for 1.26 HOT 3
- Moodle-Plugin mod_hvp produced embed code not detected by h5p-resizer.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-php-library.