apothan / open-tour-website-lib
CMS for a travel website
dev-main
2021-10-14 14:34 UTC
Requires
- php: >=7.2.5
- doctrine/annotations: ^1.12
- doctrine/doctrine-bundle: ^2.4
- doctrine/doctrine-migrations-bundle: ^3.1
- doctrine/orm: ^2.9
- sensio/framework-extra-bundle: ^6.1
- symfony/apache-pack: ^1.0
- symfony/dotenv: 5.3.*
- symfony/flex: ^1.3.1
- symfony/form: 5.3.*
- symfony/framework-bundle: 5.3.*
- symfony/monolog-bundle: ^3.7
- symfony/notifier: 5.3.*
- symfony/security-bundle: 5.3.*
- symfony/translation: 5.3.*
- symfony/twig-bundle: 5.3.*
- symfony/validator: 5.3.*
- symfony/webpack-encore-bundle: ^1.12
- symfony/yaml: 5.3.*
- twig/extra-bundle: ^3.3
- twig/intl-extra: ^3.3
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: ^3.4
- phpunit/phpunit: ^9.5
- symfony/browser-kit: 5.3.*
- symfony/css-selector: 5.3.*
- symfony/phpunit-bridge: ^5.3
This package is auto-updated.
Last update: 2024-12-14 21:59:34 UTC
README
If you want to see what this library does and how the pages look you should look at https://github.com/apothan/open-tour-website
Follow the README file on that repo
Instructions to use this lib in a Symfony project:
Create a new Symfony project
symfony new my-open-tour-website
cd my-open-tour-website
Include the library using composer
composer require apothan/open-tour-website-lib dev-main
composer require symfony/webpack-encore-bundle
composer require symfony/security-bundle
Include the library using yarn
yarn add bootstrap
yarn add jquery
yarn add popper.js
yarn add @popperjs/core
Edit webpack.config.js entry from
.addEntry('app', './assets/js/app.js')
To
.addEntry('app', './vendor/apothan/open-tour-website-lib/assets/js/app.js')
.addEntry('tourcategories', './vendor/apothan/open-tour-website-lib/assets/js/tourcategories.js')
.addEntry('tourfeatures', './vendor/apothan/open-tour-website-lib/assets/js/tourfeatures.js')
.addEntry('toursells', './vendor/apothan/open-tour-website-lib/assets/js/toursells.js')
.addEntry('touritinerary', './vendor/apothan/open-tour-website-lib/assets/js/touritinerary.js')
Add this configuration to your .env file
###> apothan/open-tour-website-li ###
API_EXTERNAL=true
API_URL=apiurl.com
API_BOOKING_URL=apiurl.com/booking/{id}
API_USER=myusername
API_PASSWORD=mypassword
###> apothan/open-tour-website-li ###
Copy the file called apothan_open_tour_lib.yaml located in the config folder of the bundle and add it to the config/routes/ directory of your project.
clear cache
php bin/console cache:clear
Add your DB details in the .env file
Requires:
Composer >= 2.0
NodeJS >= 12.13.0