{"id":13563799,"url":"https://github.com/anychart-integrations/php-laravel-mysql-template","last_synced_at":"2025-04-03T20:31:47.797Z","repository":{"id":142662421,"uuid":"71447685","full_name":"anychart-integrations/php-laravel-mysql-template","owner":"anychart-integrations","description":"This example shows how to use Anychart library with the PHP programming language, Laravel framework and MySQL database.","archived":false,"fork":false,"pushed_at":"2017-12-21T04:23:36.000Z","size":214,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-04T16:45:37.745Z","etag":null,"topics":["laravel","mysql","php"],"latest_commit_sha":null,"homepage":"https://www.anychart.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anychart-integrations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-20T09:37:57.000Z","updated_at":"2024-10-29T04:29:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"db70b202-03fa-48c0-85c7-51eff6e83827","html_url":"https://github.com/anychart-integrations/php-laravel-mysql-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anychart-integrations%2Fphp-laravel-mysql-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anychart-integrations%2Fphp-laravel-mysql-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anychart-integrations%2Fphp-laravel-mysql-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anychart-integrations%2Fphp-laravel-mysql-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anychart-integrations","download_url":"https://codeload.github.com/anychart-integrations/php-laravel-mysql-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247074838,"owners_count":20879331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","mysql","php"],"created_at":"2024-08-01T13:01:23.416Z","updated_at":"2025-04-03T20:31:47.500Z","avatar_url":"https://github.com/anychart-integrations.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"[\u003cimg src=\"https://cdn.anychart.com/images/logo-transparent-segoe.png?2\" width=\"234px\" alt=\"AnyChart - Robust JavaScript/HTML5 Chart library for any project\"\u003e](https://www.anychart.com)\n# PHP basic template\nThis example shows how to use Anychart library with the PHP programming language, Laravel framework and MySQL database.\n\n## Running\n\nTo use this sample you must have PHP installed, if not, please, install it as described [here](http://php.net/manual/en/faq.installation.php);\nMySQL installed and running, if not, please, check out [MySQL download page](https://dev.mysql.com/downloads/installer/) and follow [these instructions](http://dev.mysql.com/doc/refman/5.7/en/installing.html);\nand Composer, if not, please, check out [Composer installation guide](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).\n\nTo check your installations, run the following command in the command line:\n```\n$ php -v\nPHP 5.6.27-1+deb.sury.org~trusty+1 (cli)  # sample output\nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies\n\n$ mysql --version\nmysql  Ver 14.14 Distrib 5.5.52, for debian-linux-gnu (x86_64) using readline 6. # sample output\n\n$ composer -V\nComposer version 1.2.1 2016-09-12 11:27:19 # sample output\n```\n\nTo start this example run commands listed below.\n\nClone the repository from github.com:\n```\n$ git clone git@github.com:anychart-integrations/php-laravel-mysql-template.git\n```\n\nNavigate to the repository folder:\n```\n$ cd php-laravel-mysql-template\n```\n\nInstall dependencies:\n```\n$ composer install\n```\n\nEnsure you have php-mysql, php-mbstring, php-xml being installed, run:\n```\n$ php -m\n```\nIf there isn't 'mysql', 'xml' or 'mbstring' in the list, install it:\n```\n# to install php-mysql, run:\n$ sudo apt-get install php{your_php_version}-mysql # e.g. sudo apt-get install php5.6-mysql\n\n# to install php-mbstring, run:\n$ sudo apt-get install php{your_php_version}-mbstring # e.g. sudo apt-get install php5.6-mbstring\n\n# to install php-xml, run:\n$ sudo apt-get install php{your_php_version}-xml # e.g. sudo apt-get install php5.6-xml\n```\n\nSet up MySQL database, use -u -p flags to provide username and password:\n```\n$  mysql \u003c database_backup.sql\n```\n\nRun example:\n```\n$ php artisan serve\n```\n\nOpen browser at http://localhost:8000/\n\n## Workspace\nYour workspace should look like:\n```\nphp-laravel-mysql-template/\n    app/               \n        ...\n        Http/\n            ...\n            Controllers/\n                ...\n                ChartController.php     # Main controller to render chart\n    bootstrap/\n    config/\n    database/\n    public/\n        ...\n        css/\n            ...\n            style.css       # css style\n    resources/\n        ...\n        views\n            ...\n            chart.blade.php     # html template\n    routes/\n        ...\n        web.php             # routes\n    storage/\n    tests/\n    ...\n    .env                    # main project settings, MySQL settings here\n    .env.example\n    .gitattributes\n    .gitignore\n    artisan\n    composer.json           # composer project settings\n    composer.lock\n    database_backup.sql     # MySQL database dump\n    gulpfile.js\n    LICENSE\n    package.json\n    phpunit.xml\n    README.md\n    server.php\n    yarn.lock\n```\nMore about Laravel directory structure you can read here: https://laravel.com/docs/5.3/structure\n\n## Technologies\nLanguage - [PHP](http://php.net)\u003cbr /\u003e\nDatabase - [MySQL](https://www.mysql.com/)\u003cbr /\u003e\nWeb framework - [Laravel](https://laravel.com)\u003cbr /\u003e\n\n## Further Learning\n* [Documentation](https://docs.anychart.com)\n* [JavaScript API Reference](https://api.anychart.com)\n* [Code Playground](https://playground.anychart.com)\n* [Technical Support](https://www.anychart.com/support)\n\n## License\nAnyChart PHP/Laravel/MySQL integration sample includes two parts:\n- Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with Laravel framework, PHP language and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under [Apache 2.0 License](https://github.com/anychart-integrations/php-laravel-mysql-template/blob/master/LICENSE).\n- AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details [here](https://www.anychart.com/buy/).\n\nIf you have any questions regarding licensing - please contact us. \u003csales@anychart.com\u003e\n\n[![Analytics](https://ga-beacon.appspot.com/UA-228820-4/Integrations/php-laravel-mysql-template?pixel\u0026useReferer)](https://github.com/igrigorik/ga-beacon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanychart-integrations%2Fphp-laravel-mysql-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanychart-integrations%2Fphp-laravel-mysql-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanychart-integrations%2Fphp-laravel-mysql-template/lists"}