Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rozbehsharahi/meedia
Compressed synchronisation between live and development environments.
https://github.com/rozbehsharahi/meedia
Last synced: 2 days ago
JSON representation
Compressed synchronisation between live and development environments.
- Host: GitHub
- URL: https://github.com/rozbehsharahi/meedia
- Owner: RozbehSharahi
- Created: 2017-10-15T14:54:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T18:52:37.000Z (almost 7 years ago)
- Last Synced: 2023-07-15T20:41:49.182Z (over 1 year ago)
- Language: PHP
- Size: 49.8 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Meedia
A tool for creating dummy media files based on live environments.
[![Build Status](https://travis-ci.org/RozbehSharahi/meedia.svg?branch=master)](https://travis-ci.org/RozbehSharahi/meedia)
## Introduction
Meedia will provide dummy media files for dev-environments by connecting
to a live setup via SSH and creating a configuration tree to generate example
dummy images in the right proportions.
Additional dummy generators can be added by configuration.The tool contains an `meedia:install` and `meedia:update` command, which
will work fine for integrating it into review environments and continues integration
systems.This project is still in progress and experimental. In the future following features
shall be added:
- Add default video dummy generator
- Implement fast mode for syncing only files that have changed.## Installation
`composer require rozbehsharahi/meedia --dev`
## Commands
Initialize your ssh connection to live
`php vendor/rozbehsharahi/meedia/meedia.php meedia:init`
Test configured connection
`php vendor/rozbehsharahi/meedia/meedia.php meedia:test-connection`
Install media files either by lock or sync.
`php vendor/rozbehsharahi/meedia/meedia.php meedia:install`
Update media files by syncing from live.
`php vendor/rozbehsharahi/meedia/meedia.php meedia:update`
## Fetch image sizes with ImageMagick/GraphicsMagick
On default meedia fetches image sizes through `ImageTreeBuilder` by ImageMagick's `identify` command. In case
the live servers has GraphicsMagick installed, you can set `useGraphicsMagick` property
on your configuration to use `gm identify` instead.
```json
{
// ...
"useGraphicsMagick": true
// ...
}
```## Requirements
- PHP 7.1 (cli) on local environment
- SSH2 php extension
- ImageMagick on live server
- Linux developing system (Windows and MAC not tested yet)