Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waldz/examplesoapserver
https://github.com/waldz/examplesoapserver
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/waldz/examplesoapserver
- Owner: Waldz
- License: bsd-3-clause
- Created: 2014-05-04T20:06:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T15:35:34.000Z (over 9 years ago)
- Last Synced: 2023-09-14T16:59:18.387Z (over 1 year ago)
- Language: PHP
- Size: 598 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Example of Soap Server application
=======================Introduction
------------
This is a simple SOAP server application implemented with ZF2, to show code separation patterns.Installation
------------Using Composer (recommended)
----------------------------
Step 1. Download and install composer to your computer (read howto at https://getcomposer.org/doc/)
curl -s https://getcomposer.org/installer | php --Step 2. Or manually invoke `composer` using the shipped `composer.phar`:
# The `self-update` directive is to download newest up-to-date `composer.phar`
php composer.phar self-update
# This install all application required libraries for first time
php composer.phar install
php composer.phar dump-autoload --optimizeStep 3. Copy every file with *.dist in directory /config/autoload/
And dont commit your own local stuff to PRODUCTION!!!
doctrine.local.php.dist -> doctrine.local.php
zenddevelopertools.local.php.dist -> zenddevelopertools.local.php
...
...Step 4. Import DB data
data/schema.sqlVirtual Host
------------
Step1. Notepad.exe press "Run as Administrator"
Step2. Create fake domain in file C:\Windows\System32\drivers\etc\hosts
127.0.0.1 examplesoap.localhostStep3. Add virtual host and restart Web server C:/Users/Valdas/xampp/apache/conf/httpd.conf
ServerName examplesoap.localhostDocumentRoot "C:/Users/Valdas/workspace/ExampleSoapServer/public"
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride FileInfo
Order allow,deny
Allow from All
Automated testing
------------
cd module/WordSoapServer/test/ && phpunit --configuration phpunit.xmlUsing Doctrine console
------------
Everyday jobs:
# How to map entities to DB
http://docs.doctrine-project.org/en/2.0.x/reference/association-mapping.html
# Check if Entity objects are correct
vendor\bin\doctrine-module.bat orm:validate-schema# Alter database by entities (all other times)
# Windows:
vendor\bin\doctrine-module.bat orm:schema-tool:update --dump-sql
vendor\bin\doctrine-module.bat orm:schema-tool:update --force
# UNIX:
./vendor/bin/doctrine-module orm:schema-tool:update --dump-sql
./vendor/bin/doctrine-module orm:schema-tool:update --forcePROD deployment
------------
Step1. Install project required libraries
php composer.phar self-update
php composer.phar updateStep2. Buildings paths of all classess makes project superfast :)
Step2.1 Build class map (for EACH Module):
sudo su www-data
php ./vendor/bin/classmap_generator.php -l ./module/YourModuleNameStep2.2 Build template map (for EACH Module):
cd module/YourModuleName
php ../../vendor/zendframework/zendframework/bin/templatemap_generator.php -w