Download the PHP package ssitu/medicis without Composer

On this page you can find all versions of the php package ssitu/medicis. 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 medicis

Medicis

A PHP tool dedicated to fastforward JSON collection creation.

Setup

Install

ssitu/jacktrades will be installed too. It's a very small library of utils.

Ready for CLI

To uses Medicis in CLI, install ssitu/euclid too. It should be suggested by Composer; otherwise:

Init

Directories will be mkdir'd.

TLDR

Take a look at files in samples/collections;
And to dip toes in CLI:

Collections

The whole point of Medicis is to write Json schema (and make use of them), easy and quick.

Collections will be arranged in groups.
Groups are bundles of related collections.
Of course, a group can also host a single collection.

Prep

To set up a collection:

Each collection file must specify 2 main properties:

props items are objects, each containing 2 properties:

The shortcut is within method and param: they refer to methods in MedicisModels that will do the heavy work.

Example: people-activities.json:

Related method in MedicisModel:

MedicisModel interface file will serve as a cheat sheet for available methods: Medicis/src/MedicisFamily/MedicisModels_i.php

Config

You can add a config property to each collection; what it may contain is entirely up to you. If collections are going to be integrated in some UI, it could be things like auth level, template used, position in menu, etc.

Content will be detached from the src file, into its own file in dist/. As for the other collection files, a bundle is generated when running 'Groups' commands in CLI.

You can also create a similar file for group-wide config, in src/collc/your-group/, naming it after your group: your-group.json. The group bundle file will then include the group config, and wrap collections config in an 'items' property.

Translation

For each language your are planning translations, create a file in src/transl folder, named as follow: collections-{language}.json

In CLI, run 'transl' commands for either collections, or groups: source translation files will automatically be populated with keys that requires translation (and you'll get a log).

Note that 'all' commands include translation.

Entries are separated between:

Example collections-en.json

Distill

To generate from there a real schema, dummy data, translation arrays, and optionally some config, in CLI:

You'll get a log of what worked, failed, have been skipped, etc, and you'll find generated files in dist/people/ folders:
sch, data, config and transl.

Merge

In CLI, a 'Group' command will:

MetaMedicis

MedicisCli is fine and dandy for quick, common use operations, but for more targeted operations:

A non-exhaustive list of possibilities (cf. interfaces for more):

Contributing

Sure! You can take a loot at CONTRIBUTING.

License

This project is under the MIT License; cf. LICENSE for details.


All versions of medicis with dependencies

PHP Build Version
Package Version
Requires ssitu/jacktrades Version ^2.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 ssitu/medicis contains the following files

Loading the files please wait ....