Download the PHP package symkit/media-bundle without Composer

On this page you can find all versions of the php package symkit/media-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package media-bundle

Symkit Media Bundle

CI Latest Version PHPStan Level 9

A powerful, modern media management bundle for Symfony applications, designed for performance, flexibility, and a premium UI/UX.

Features

Installation

1. Install via Composer

2. Register the Bundle

In config/bundles.php:

3. Configuration

Create config/packages/symkit_media.yaml:

4. Routes

Include the bundle routes in config/routes.yaml:

If admin.enabled or api.enabled is false, do not include the corresponding route block so that those URLs are not exposed.

5. Assets

The bundle prepends its Stimulus controllers to AssetMapper. Ensure your app discovers them (e.g. via assets/bootstrap.js and Stimulus).

Activation / Deactivation

Only the controllers, routes, and search provider are conditional; core services (MediaManager, forms, Live Components, etc.) remain available when the bundle is enabled.

Custom Entity and Repository

You can use your own Media entity and repository:

  1. Create an entity (e.g. extend Symkit\MediaBundle\Entity\Media or implement the same contract) and map it with Doctrine.
  2. Create a repository that implements Symkit\MediaBundle\Repository\MediaRepositoryInterface (or extend Symkit\MediaBundle\Repository\MediaRepository with a constructor accepting ManagerRegistry and string $entityClass).
  3. Configure:

Translations (FR / EN)

The bundle ships with English and French in translations/ (domain SymkitMediaBundle). The translation path is registered automatically.

Usage

In Entities

In Forms

In Twig

Architecture & SOLID

Testing

Bundle test suite

From the bundle root, run make test. After composer install, you can also run make quality for the full pipeline (cs-check, phpstan, deptrac, lint, test, infection).

The suite includes unit tests (services, form transformer, security rules, Live Components, search provider), integration tests (bundle boot, config, services), and functional tests (API upload).

Testing in an application

To validate the bundle in a real application (e.g. an app that uses this bundle via Composer):

  1. Run the application (e.g. symfony serve or php -S localhost:8000 -t public from the app root).
  2. Admin media
    • Open the media list (e.g. /admin/media if route_prefix is admin).
    • Check: list, create (upload), edit (replace file), delete.
  3. API upload
    • POST a file to the async upload endpoint (e.g. /admin/medias/api/upload with file).
    • Expect JSON { "id", "url", "filename" } on success.
  4. Media Library / Picker
    • Use a form that embeds the media library or picker Live Component; run search, pagination, and selection.
  5. Search
    • If the app uses symkit/search-bundle, trigger global search and confirm media results appear.

These steps can be automated with E2E tools (e.g. Playwright, Mink) or run as a manual checklist.

Contributing

License

MIT


All versions of media-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/framework-bundle Version ^7.0 || ^8.0
symkit/crud-bundle Version ~0.0.1
symkit/form-bundle Version ~0.0.1
symkit/metadata-bundle Version ~0.0.1
symkit/menu-bundle Version ~0.0.1
symkit/search-bundle Version ~0.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package symkit/media-bundle contains the following files

Loading the files please wait ...