sonata-project / sandbox
Sonata Project's sandbox (with ecommerce bundles)
Fund package maintenance!
OskarStark
wbloszyk
VincentLanglet
greg0ire
Installs: 36 228
Dependents: 0
Suggesters: 0
Security: 0
Stars: 269
Watchers: 47
Forks: 207
Open Issues: 0
Requires
- php: ^7.4
- ext-bcmath: *
- ext-json: *
- ext-simplexml: *
- doctrine/annotations: ^1.13.1
- doctrine/doctrine-bundle: ^2.3.2
- doctrine/doctrine-fixtures-bundle: ^3.4.0
- doctrine/doctrine-migrations-bundle: ^3.1.1
- doctrine/orm: ^2.7.5
- friendsofsymfony/rest-bundle: ^2.8.6
- guzzlehttp/guzzle: ^6.5.5
- jms/serializer-bundle: ^3.9.1
- michelf/php-markdown: ^1.9.0
- mopa/bootstrap-bundle: ^3.4.1
- nelmio/api-doc-bundle: ^2.13.5
- phpdocumentor/reflection-docblock: ^5.2.2
- sensio/framework-extra-bundle: ^5.6.1
- sonata-project/admin-bundle: ^3.100.2
- sonata-project/block-bundle: ^3.23.1
- sonata-project/cache-bundle: ^2.4.2
- sonata-project/classification-bundle: ^3.16.0
- sonata-project/comment-bundle: ^3.3.1
- sonata-project/datagrid-bundle: ^3.3.0
- sonata-project/doctrine-extensions: ^1.12.0
- sonata-project/doctrine-orm-admin-bundle: ^3.34.2
- sonata-project/easy-extends-bundle: ^2.5.0
- sonata-project/ecommerce: ^3.5.2
- sonata-project/exporter: ^2.6.2
- sonata-project/form-extensions: ^1.9.0
- sonata-project/formatter-bundle: ^4.5.0
- sonata-project/google-authenticator: ^2.3.1
- sonata-project/intl-bundle: ^2.10.1
- sonata-project/media-bundle: ^3.31.2
- sonata-project/news-bundle: ^3.17.0
- sonata-project/notification-bundle: ^3.12.0
- sonata-project/page-bundle: ^3.22.2
- sonata-project/seo-bundle: ^2.13
- sonata-project/timeline-bundle: ^3.7.0
- sonata-project/twig-extensions: ^1.6.0
- sonata-project/user-bundle: ^4.11.1
- stof/doctrine-extensions-bundle: ^1.6.0
- symfony-cmf/routing-bundle: ^2.5.0
- symfony/acl-bundle: ^2.1.0
- symfony/browser-kit: ^4.4.25
- symfony/debug: ^4.4.25
- symfony/debug-bundle: ^4.4.20
- symfony/dependency-injection: ^4.4.25
- symfony/flex: ^1.13.3
- symfony/form: ^4.4.25
- symfony/http-client: ^4.4.25
- symfony/http-kernel: ^4.4.25
- symfony/monolog-bundle: ^3.7.0
- symfony/property-access: ^4.4.25
- symfony/property-info: ^4.4.25
- symfony/security-acl: ^3.1.2
- symfony/security-bundle: ^4.4.25
- symfony/security-csrf: ^4.4.25
- symfony/serializer: ^4.4.25 || ^5.1
- symfony/translation: ^4.4.25
- symfony/twig-bundle: ^4.4.25
- symfony/validator: ^4.4.25
- twig/extra-bundle: ^3.3.1
- twig/twig: ^2.14.6
- willdurand/faker-bundle: ^1.4.1
Requires (Dev)
- behat/behat: ^3.8.1
- behat/mink: ^1.8.1
- behat/mink-browserkit-driver: ^1.3.4
- behat/mink-extension: ^2.3.1
- behat/mink-goutte-driver: ^1.2.1
- behat/mink-selenium2-driver: ^1.4.0
- phing/phing: ^2.16.4
- phpstan/phpstan: ^0.12.88
- symfony/dotenv: ^4.4.25
- symfony/phpunit-bridge: ^5.3.0
- symfony/stopwatch: ^4.4.25
- symfony/web-profiler-bundle: ^4.4.25
Conflicts
This package is auto-updated.
Last update: 2022-07-27 21:03:28 UTC
README
WARNING: This repository is abandoned
There is no active support on it.
Feel free to ask if you want to help to keep this project up to date.
What's inside?
Sonata Sandbox comes pre-configured with the following bundles:
- Bundles from Symfony Standard distribution
- Sonata Admin Bundles: Admin and Doctrine ORM Admin
- Sonata Ecommerce Bundles: Payment, Customer, Invoice, Order and Product
- Sonata Foundation Bundles: Notification, Formatter, Intl, Cache, Seo and Easy Extends
- Sonata Feature Bundles: Page, Media, News, User, Block, Timeline
- Api Bundles: FOSRestBundle, BazingaHateoasBundle, NelmioApiDocBundle and JMSSerializerBundle
Installation
Download sandbox files by one of possible examples
Curl:
curl -L github https://github.com/sonata-project/sandbox-build/archive/master.tar.gz | tar xzv
cd sandbox
Git:
git clone https://github.com/sonata-project/sandbox.git
cd sandbox
git checkout master
Prepare configuration
- Copy configuration file:
cp .env .env.local
- Edit
.env.local
to configure own environment
Load fixtures data
vendor/bin/phing
- You should be ready to go ...
Vagrant Installation
- vagrant up --provision --provider=virtualbox (Vagrant is going to get the environnement, install it for you and load sonata sample data)
- Configure your host
sudo nano /etc/hosts
and add this line192.168.33.99 sonata.local
- Open your browser here
Run
If you are running PHP 7.2 or above, you can use symfony to start the demo:
symfony server:start --port=9090
Now open your browser and go to http://localhost:9090/
Tests
Functional testing
To run the Behat tests, copy the default configuration file and adjust the base_url to your needs
- Copy configuration file:
cp behat.yml.dist behat.yml
- Edit it
behat.yml
You can now run the tests suite by using the following command:
bin/qa_behat.sh
To get more informations about Behat, feel free to check the official documentation.
Unit testing
To run the sandbox test suites, you can run the command:
vendor/bin/simple-phpunit
You can also run the whole sonata-project bundles test suites by using the following command:
bin/qa_client_ci.sh
Enjoy!