Ltc_Komfortkasse - Version 1.4.4.12

Version Notes

Bugfix when using invoice amount without credit notes

Download this release

Release Info

Developer Komfortkasse
Extension Ltc_Komfortkasse
Version 1.4.4.12
Comparing to
See all releases


Code changes from version 1.4.4.7 to 1.4.4.12

app/code/community/Ltc/Komfortkasse/Helper/Komfortkasse.php CHANGED
@@ -8,7 +8,7 @@ require_once 'Komfortkasse_Order.php';
8
  */
9
  class Komfortkasse
10
  {
11
- const PLUGIN_VER = '1.4.4.2';
12
  const MAXLEN_SSL = 117;
13
  const LEN_MCRYPT = 16;
14
 
@@ -86,7 +86,7 @@ class Komfortkasse
86
  } else {
87
  $order = Komfortkasse_Order::getOrder($id);
88
  if ($order['payment_method'])
89
- $order['type'] = self::getOrderType($order['payment_method']);
90
  }
91
 
92
  if (!$order) {
@@ -388,7 +388,7 @@ class Komfortkasse
388
  }
389
 
390
  $order = Komfortkasse_Order::getOrder($id);
391
- $order['type'] = self::getOrderType($order['payment_method']);
392
 
393
  // See if order is relevant.
394
  if (!self::isOpen($order)) {
@@ -454,7 +454,7 @@ class Komfortkasse
454
  */
455
  protected static function getNewStatus($status, $order)
456
  {
457
- $orderType = self::getOrderType($order ['payment_method']);
458
 
459
  switch ($orderType) {
460
  case 'PREPAYMENT' :
@@ -468,17 +468,17 @@ class Komfortkasse
468
  case 'INVOICE' :
469
  switch ($status) {
470
  case 'PAID' :
471
- return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_paid_invoice);
472
  case 'CANCELLED' :
473
- return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_cancelled_invoice);
474
  }
475
  return null;
476
  case 'COD' :
477
  switch ($status) {
478
  case 'PAID' :
479
- return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_paid_cod);
480
  case 'CANCELLED' :
481
- return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_cancelled_cod);
482
  }
483
  return null;
484
  }
@@ -827,14 +827,16 @@ class Komfortkasse
827
 
828
  // end mybase64_encode()
829
 
830
- private static function getOrderType($payment_method) {
831
- $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods));
 
 
832
  if (in_array($payment_method, $paycodes))
833
  return 'PREPAYMENT';
834
- $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods_invoice));
835
  if (in_array($payment_method, $paycodes))
836
  return 'INVOICE';
837
- $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods_cod));
838
  if (in_array($payment_method, $paycodes))
839
  return 'COD';
840
  return '';
8
  */
9
  class Komfortkasse
10
  {
11
+ const PLUGIN_VER = '1.4.4.12';
12
  const MAXLEN_SSL = 117;
13
  const LEN_MCRYPT = 16;
14
 
86
  } else {
87
  $order = Komfortkasse_Order::getOrder($id);
88
  if ($order['payment_method'])
89
+ $order['type'] = self::getOrderType($order);
90
  }
91
 
92
  if (!$order) {
388
  }
389
 
390
  $order = Komfortkasse_Order::getOrder($id);
391
+ $order['type'] = self::getOrderType($order);
392
 
393
  // See if order is relevant.
394
  if (!self::isOpen($order)) {
454
  */
455
  protected static function getNewStatus($status, $order)
456
  {
457
+ $orderType = self::getOrderType($order);
458
 
459
  switch ($orderType) {
460
  case 'PREPAYMENT' :
468
  case 'INVOICE' :
469
  switch ($status) {
470
  case 'PAID' :
471
+ return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_paid_invoice, $order);
472
  case 'CANCELLED' :
473
+ return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_cancelled_invoice, $order);
474
  }
475
  return null;
476
  case 'COD' :
477
  switch ($status) {
478
  case 'PAID' :
479
+ return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_paid_cod, $order);
480
  case 'CANCELLED' :
481
+ return Komfortkasse_Config::getConfig(Komfortkasse_Config::status_cancelled_cod, $order);
482
  }
483
  return null;
484
  }
827
 
828
  // end mybase64_encode()
829
 
830
+ public static function getOrderType($order) {
831
+ $payment_method = $order['payment_method'];
832
+
833
+ $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods, $order));
834
  if (in_array($payment_method, $paycodes))
835
  return 'PREPAYMENT';
836
+ $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods_invoice, $order));
837
  if (in_array($payment_method, $paycodes))
838
  return 'INVOICE';
839
+ $paycodes = preg_split('/,/', Komfortkasse_Config::getConfig(Komfortkasse_Config::payment_methods_cod, $order));
840
  if (in_array($payment_method, $paycodes))
841
  return 'COD';
842
  return '';
app/code/community/Ltc/Komfortkasse/Helper/Komfortkasse_Config.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
 
3
- /**
4
  * Komfortkasse
5
  * Config Class
6
- * @version 1.4.0.1-Magento */
7
  class Komfortkasse_Config
8
  {
9
  const activate_export = 'payment/komfortkasse/activate_export';
@@ -25,6 +25,8 @@ class Komfortkasse_Config
25
  const apikey = 'payment/komfortkasse/apikey';
26
  const publickey = 'payment/komfortkasse/publickey';
27
  const privatekey = 'payment/komfortkasse/privatekey';
 
 
28
 
29
 
30
  /**
@@ -33,7 +35,7 @@ class Komfortkasse_Config
33
  *
34
  * @param string $constantKey Constant Key
35
  * @param string $value Value
36
- *
37
  * @return void
38
  */
39
  public static function setConfig($constantKey, $value)
@@ -41,18 +43,18 @@ class Komfortkasse_Config
41
  Mage::getConfig()->saveConfig($constantKey, $value);
42
  Mage::getConfig()->reinit();
43
  Mage::app()->reinitStores();
44
-
45
  }
46
 
47
  // end setConfig()
48
-
49
 
50
  /**
51
  * Get Config.
52
  *
53
  *
54
  * @param string $constantKey Constant Key
55
- *
56
  * @return mixed
57
  */
58
  public static function getConfig($constantKey, $order=null)
@@ -61,38 +63,38 @@ class Komfortkasse_Config
61
  if ($order != null) {
62
  $store_id = $order['store_id'];
63
  } else {
64
- // export und update werden in den getId Methoden nochmals extra ber�cksichtigt.
65
  if ($constantKey == self::activate_export)
66
  return true;
67
  if ($constantKey == self::activate_update)
68
  return true;
69
  }
70
-
71
  $value = Mage::getStoreConfig($constantKey, $store_id);
72
-
73
  return $value;
74
-
75
  }
76
 
77
  // end getConfig()
78
-
79
 
80
  /**
81
  * Get Request Parameter.
82
  *
83
  *
84
  * @param string $key Key
85
- *
86
  * @return string
87
  */
88
  public static function getRequestParameter($key)
89
  {
90
  return urldecode(Mage::app()->getRequest()->getParam($key));
91
-
92
  }
93
 
94
  // end getRequestParameter()
95
-
96
 
97
  /**
98
  * Get Magento Version.
@@ -103,6 +105,6 @@ class Komfortkasse_Config
103
  public static function getVersion()
104
  {
105
  return Mage::getVersion();
106
-
107
  } // end getVersion()
108
  }//end class
1
  <?php
2
 
3
+ /**
4
  * Komfortkasse
5
  * Config Class
6
+ * @version 1.4.4.11-Magento */
7
  class Komfortkasse_Config
8
  {
9
  const activate_export = 'payment/komfortkasse/activate_export';
25
  const apikey = 'payment/komfortkasse/apikey';
26
  const publickey = 'payment/komfortkasse/publickey';
27
  const privatekey = 'payment/komfortkasse/privatekey';
28
+ const use_invoice_total = 'payment/komfortkasse/use_invoice_total';
29
+ const consider_creditnotes = 'payment/komfortkasse/consider_creditnotes';
30
 
31
 
32
  /**
35
  *
36
  * @param string $constantKey Constant Key
37
  * @param string $value Value
38
+ *
39
  * @return void
40
  */
41
  public static function setConfig($constantKey, $value)
43
  Mage::getConfig()->saveConfig($constantKey, $value);
44
  Mage::getConfig()->reinit();
45
  Mage::app()->reinitStores();
46
+
47
  }
48
 
49
  // end setConfig()
50
+
51
 
52
  /**
53
  * Get Config.
54
  *
55
  *
56
  * @param string $constantKey Constant Key
57
+ *
58
  * @return mixed
59
  */
60
  public static function getConfig($constantKey, $order=null)
63
  if ($order != null) {
64
  $store_id = $order['store_id'];
65
  } else {
66
+ // export und update werden in den getId Methoden nochmals extra ber�cksichtigt.
67
  if ($constantKey == self::activate_export)
68
  return true;
69
  if ($constantKey == self::activate_update)
70
  return true;
71
  }
72
+
73
  $value = Mage::getStoreConfig($constantKey, $store_id);
74
+
75
  return $value;
76
+
77
  }
78
 
79
  // end getConfig()
80
+
81
 
82
  /**
83
  * Get Request Parameter.
84
  *
85
  *
86
  * @param string $key Key
87
+ *
88
  * @return string
89
  */
90
  public static function getRequestParameter($key)
91
  {
92
  return urldecode(Mage::app()->getRequest()->getParam($key));
93
+
94
  }
95
 
96
  // end getRequestParameter()
97
+
98
 
99
  /**
100
  * Get Magento Version.
105
  public static function getVersion()
106
  {
107
  return Mage::getVersion();
108
+
109
  } // end getVersion()
110
  }//end class
app/code/community/Ltc/Komfortkasse/Helper/Komfortkasse_Order.php CHANGED
@@ -8,17 +8,19 @@
8
  * status: data type according to the shop system
9
  * delivery_ and billing_: _firstname, _lastname, _company, _street, _postcode, _city, _countrycode
10
  * products: an Array of item numbers
11
- * @version 1.4.4.7-Magento1
12
  */
13
  $path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
14
- $order_extension = false;
 
15
  if (file_exists("{$path}/Helper/Komfortkasse_Order_Extension.php") === true) {
16
- $order_extension = true;
17
  include_once "{$path}/Helper/Komfortkasse_Order_Extension.php";
18
  }
19
  class Komfortkasse_Order
20
  {
21
 
 
22
  private static function createInClause($arr)
23
  {
24
  if (!is_array($arr)) {
@@ -32,6 +34,7 @@ class Komfortkasse_Order
32
 
33
  }
34
 
 
35
  /**
36
  * Get open order IDs.
37
  *
@@ -46,7 +49,7 @@ class Komfortkasse_Order
46
  $tableOrder = $resource->getTableName('sales/order');
47
  $tablePayment = $resource->getTableName('sales/order_payment');
48
 
49
- $minDate = date('Y-m-d', time()-31536000); // 1 Jahr
50
 
51
  foreach (Mage::app()->getWebsites() as $website) {
52
  foreach ($website->getGroups() as $group) {
@@ -95,7 +98,7 @@ class Komfortkasse_Order
95
 
96
  $results = $readConnection->fetchAll($query);
97
  foreach ($results as $result) {
98
- $ret[] = $result['increment_id'];
99
  }
100
  }
101
  }
@@ -193,16 +196,31 @@ class Komfortkasse_Order
193
  $ret ['currency_code'] = $order->getOrderCurrencyCode();
194
  $ret ['exchange_rate'] = $order->getBaseToOrderRate();
195
 
196
- // Rechnungsnummer und -datum
 
 
197
  $invoiceColl = $order->getInvoiceCollection();
198
  if ($invoiceColl->getSize() > 0) {
 
199
  foreach ($order->getInvoiceCollection() as $invoice) {
200
- $ret ['invoice_number'] [] = $invoice->getIncrementId();
201
- $invoiceDate = date('d.m.Y', strtotime($invoice->getCreatedAt()));
202
- if ($ret ['invoice_date'] == null || strtotime($ret ['invoice_date']) < strtotime($invoiceDate)) {
203
- $ret ['invoice_date'] = $invoiceDate;
 
 
 
 
 
 
 
 
 
 
204
  }
205
  }
 
 
206
  }
207
 
208
  $shippingAddress = $order->getShippingAddress();
@@ -241,7 +259,8 @@ class Komfortkasse_Order
241
 
242
  $ret ['store_id'] = $order->getStoreId();
243
 
244
- if ($order_extension && method_exists('Komfortkasse_Order_Extension', 'extendOrder') === true) {
 
245
  $ret = Komfortkasse_Order_Extension::extendOrder($order, $ret);
246
  }
247
 
8
  * status: data type according to the shop system
9
  * delivery_ and billing_: _firstname, _lastname, _company, _street, _postcode, _city, _countrycode
10
  * products: an Array of item numbers
11
+ * @version 1.4.4.12-Magento1
12
  */
13
  $path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
14
+ global $komfortkasse_order_extension;
15
+ $komfortkasse_order_extension = false;
16
  if (file_exists("{$path}/Helper/Komfortkasse_Order_Extension.php") === true) {
17
+ $komfortkasse_order_extension = true;
18
  include_once "{$path}/Helper/Komfortkasse_Order_Extension.php";
19
  }
20
  class Komfortkasse_Order
21
  {
22
 
23
+
24
  private static function createInClause($arr)
25
  {
26
  if (!is_array($arr)) {
34
 
35
  }
36
 
37
+
38
  /**
39
  * Get open order IDs.
40
  *
49
  $tableOrder = $resource->getTableName('sales/order');
50
  $tablePayment = $resource->getTableName('sales/order_payment');
51
 
52
+ $minDate = date('Y-m-d', time() - 31536000); // 1 Jahr
53
 
54
  foreach (Mage::app()->getWebsites() as $website) {
55
  foreach ($website->getGroups() as $group) {
98
 
99
  $results = $readConnection->fetchAll($query);
100
  foreach ($results as $result) {
101
+ $ret [] = $result ['increment_id'];
102
  }
103
  }
104
  }
196
  $ret ['currency_code'] = $order->getOrderCurrencyCode();
197
  $ret ['exchange_rate'] = $order->getBaseToOrderRate();
198
 
199
+ // Rechnungsnummer und -datum, evtl. Rechnungsbetrag
200
+ $useInvoiceAmount = Komfortkasse::getOrderType($ret) == 'INVOICE' && Komfortkasse_Config::getConfig(Komfortkasse_Config::use_invoice_total);
201
+ $considerCreditnotes = $useInvoiceAmount && Komfortkasse_Config::getConfig(Komfortkasse_Config::consider_creditnotes);
202
  $invoiceColl = $order->getInvoiceCollection();
203
  if ($invoiceColl->getSize() > 0) {
204
+ $amount = 0.0;
205
  foreach ($order->getInvoiceCollection() as $invoice) {
206
+ if (!$invoice->isCanceled()) {
207
+ $ret ['invoice_number'] [] = $invoice->getIncrementId();
208
+ $invoiceDate = date('d.m.Y', strtotime($invoice->getCreatedAt()));
209
+ if ($ret ['invoice_date'] == null || strtotime($ret ['invoice_date']) < strtotime($invoiceDate)) {
210
+ $ret ['invoice_date'] = $invoiceDate;
211
+ }
212
+ if ($useInvoiceAmount)
213
+ $amount = $amount + $invoice->getGrandTotal();
214
+ }
215
+ }
216
+ if ($considerCreditnotes) {
217
+ $creditColl = $order->getCreditmemosCollection();
218
+ foreach ($creditColl as $credit) {
219
+ $amount = $amount - $credit->getGrandTotal();
220
  }
221
  }
222
+ if ($useInvoiceAmount && $amount > 0)
223
+ $ret ['amount'] = $amount;
224
  }
225
 
226
  $shippingAddress = $order->getShippingAddress();
259
 
260
  $ret ['store_id'] = $order->getStoreId();
261
 
262
+ global $komfortkasse_order_extension;
263
+ if ($komfortkasse_order_extension && method_exists('Komfortkasse_Order_Extension', 'extendOrder') === true) {
264
  $ret = Komfortkasse_Order_Extension::extendOrder($order, $ret);
265
  }
266
 
app/code/community/Ltc/Komfortkasse/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Ltc_Komfortkasse>
6
- <version>1.4.4.7</version>
7
  </Ltc_Komfortkasse>
8
  </modules>
9
  <global>
@@ -58,6 +58,8 @@
58
  <status_paid>processing</status_paid>
59
  <status_cancelled>canceled</status_cancelled>
60
  <status_open_invoice>complete</status_open_invoice>
 
 
61
  <status_open_cod>processing</status_open_cod>
62
  </komfortkasse>
63
  </payment>
3
  <config>
4
  <modules>
5
  <Ltc_Komfortkasse>
6
+ <version>1.4.4.12</version>
7
  </Ltc_Komfortkasse>
8
  </modules>
9
  <global>
58
  <status_paid>processing</status_paid>
59
  <status_cancelled>canceled</status_cancelled>
60
  <status_open_invoice>complete</status_open_invoice>
61
+ <use_invoice_total>0</use_invoice_total>
62
+ <consider_creditnotes>0</consider_creditnotes>
63
  <status_open_cod>processing</status_open_cod>
64
  </komfortkasse>
65
  </payment>
app/code/community/Ltc/Komfortkasse/etc/system.xml CHANGED
@@ -2,7 +2,7 @@
2
  <!--
3
  Komfortkasse
4
  Magento Plugin - system.xml
5
- @version 1.3.0.1-Magento */ -->
6
  <config>
7
  <sections>
8
  <payment>
@@ -133,6 +133,28 @@
133
  <comment>Order state that should be set when an invoice has not been paid.
134
  </comment>
135
  </status_cancelled_invoice>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
 
138
 
2
  <!--
3
  Komfortkasse
4
  Magento Plugin - system.xml
5
+ @version 1.4.4.11-Magento */ -->
6
  <config>
7
  <sections>
8
  <payment>
133
  <comment>Order state that should be set when an invoice has not been paid.
134
  </comment>
135
  </status_cancelled_invoice>
136
+ <use_invoice_total translate="label">
137
+ <label>Invoice: use invoice amount</label>
138
+ <frontend_type>select</frontend_type>
139
+ <source_model>adminhtml/system_config_source_enabledisable
140
+ </source_model>
141
+ <sort_order>95</sort_order>
142
+ <show_in_default>1</show_in_default>
143
+ <show_in_website>1</show_in_website>
144
+ <show_in_store>1</show_in_store>
145
+ <comment>Instead of order amount, use invoice amount for sending out payment information</comment>
146
+ </use_invoice_total>
147
+ <consider_creditnotes translate="label">
148
+ <label>Invoice: subtract credit notes</label>
149
+ <frontend_type>select</frontend_type>
150
+ <source_model>adminhtml/system_config_source_enabledisable
151
+ </source_model>
152
+ <sort_order>97</sort_order>
153
+ <show_in_default>1</show_in_default>
154
+ <show_in_website>1</show_in_website>
155
+ <show_in_store>1</show_in_store>
156
+ <comment>If using invoice amount: subtract credit notes from total</comment>
157
+ </consider_creditnotes>
158
 
159
 
160
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ltc_Komfortkasse</name>
4
- <version>1.4.4.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0</license>
7
  <channel>community</channel>
@@ -13,11 +13,11 @@ Zus&#xE4;tzlich k&#xF6;nnen automatische Zahlungserinnerungen versendet werden u
13
  &#xD;
14
  Es ist eine Anmeldung auf www.komfortkasse.eu erforderlich (kostenloses Paket verf&#xFC;gbar).&#xD;
15
  </description>
16
- <notes>Supports refunds for invoice orders now</notes>
17
  <authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
18
- <date>2016-03-11</date>
19
- <time>08:53:05</time>
20
- <contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="42f1d168bb70725128e15daf305802ba"/><file name="Komfortkasse.php" hash="94437288becf611e7f4035d1b6318e0c"/><file name="Komfortkasse_Config.php" hash="44cf103f0ddef60890cd6c221262b7e5"/><file name="Komfortkasse_Order.php" hash="bb0d0897b9b82caeb0c12052b62dfdbb"/></dir><dir name="Model"><file name="Encryptionoptions.php" hash="774297014fb6ce333a3a0b6063de2ac9"/><file name="Observer.php" hash="5b616b6d3651df44f8297c732dc478bb"/></dir><dir name="controllers"><file name="MainController.php" hash="b983fe60b2bbfa3aa1d57850cc6c045b"/></dir><dir name="etc"><file name="config.xml" hash="b43010bb8901a336689658244d909eeb"/><file name="system.xml" hash="3364fe33d7518eb136721fb81957c447"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ltc_Komfortkasse.xml" hash="433066ef75047d9468dcea87888283d2"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ltc_Komfortkasse</name>
4
+ <version>1.4.4.12</version>
5
  <stability>stable</stability>
6
  <license uri="http://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0</license>
7
  <channel>community</channel>
13
  &#xD;
14
  Es ist eine Anmeldung auf www.komfortkasse.eu erforderlich (kostenloses Paket verf&#xFC;gbar).&#xD;
15
  </description>
16
+ <notes>Bugfix when using invoice amount without credit notes</notes>
17
  <authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
18
+ <date>2016-03-23</date>
19
+ <time>11:02:39</time>
20
+ <contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="42f1d168bb70725128e15daf305802ba"/><file name="Komfortkasse.php" hash="374b99b07123876e0079a1a117f41fca"/><file name="Komfortkasse_Config.php" hash="0666ed4594f499b6cee4152685855971"/><file name="Komfortkasse_Order.php" hash="3cc0713b71e6a0aed0752f1f8a380302"/></dir><dir name="Model"><file name="Encryptionoptions.php" hash="774297014fb6ce333a3a0b6063de2ac9"/><file name="Observer.php" hash="5b616b6d3651df44f8297c732dc478bb"/></dir><dir name="controllers"><file name="MainController.php" hash="b983fe60b2bbfa3aa1d57850cc6c045b"/></dir><dir name="etc"><file name="config.xml" hash="e5b3746605137d1cd271e0b9b89d4484"/><file name="system.xml" hash="17b6f83e47f9e5f4d77a0f02be7f6814"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ltc_Komfortkasse.xml" hash="433066ef75047d9468dcea87888283d2"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>