jbzoo / mermaid-php Goto Github PK
View Code? Open in Web Editor NEWGenerate diagrams and flowcharts with the help of the mermaid script language
Home Page: https://mermaidjs.github.io/
License: MIT License
Generate diagrams and flowcharts with the help of the mermaid script language
Home Page: https://mermaidjs.github.io/
License: MIT License
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.8.0] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.x-dev (alias of dev-master)].
- jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
- jbzoo/composer-graph[dev-master, 1.0.4] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
- Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, 2.7.0, 2.8.0, 2.x-dev (alias of dev-master)].
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
I just dont understand how I am supposed to create a sequence diagram using this library
Reference
https://mermaid-js.github.io/mermaid/#/./sequenceDiagram
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.9.0] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.x-dev (alias of dev-master)].
- jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
- jbzoo/composer-graph[dev-master, 1.0.4] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
- Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, ..., 2.x-dev (alias of dev-master)].
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
Hi, Thanks for creating this project :)
I've noticed that there are two remote scripts called, if a graph gets rendered. This is somewhat problematic regarding GDPR-Compliance.
In order to fix this I've created a local cache, which downloads the file in order to serve them locally.
I've added this method to Render::class
:
public static function cache($filepath, $source): void {
if (File::exists($filepath) === false) {
if (File::exists(dirname($filepath)) === false) {
File::makeDirectory(dirname($filepath), 677, true);
}
File::put($filepath, file_get_contents($source));
}
}
.. and adjusted Render::html
a bit, to use the cache instead:
$jqueryPath = public_path("js/jquery-3.4.1.slim.min.js");
$assetPath = public_path("js/mermaid@{$version}/dist/mermaid.js");
self::cache($jqueryPath, "https://code.jquery.com/jquery-3.4.1.slim.min.js");
self::cache($assetPath, "https://unpkg.com/mermaid@{$version}/dist/mermaid.js");
$html = [
' <script src="' . asset("js/jquery-3.4.1.slim.min.js") . '"></script>',
' <script src="' . asset("js/mermaid@{$version}/dist/mermaid.js") . '"></script>',
...
];
Kind regards & happy coding,
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.9.1] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.1.0, 1.1.1, 1.x-dev (alias of dev-master)].
- jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
- jbzoo/composer-graph[dev-master, 1.0.4, ..., 1.1.1] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
- Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, ..., 2.x-dev (alias of dev-master)].
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.