You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 8, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: BreakingChanges.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,33 @@
1
+
**Note: This changelog is deprecated starting with version 1.0.0, please refer to the ChangeLog.md in each package for future change logs.**
2
+
3
+
Tracking Breaking changes in 1.0.0
4
+
5
+
All
6
+
* Split azure-storage composer package into azure-storage-blob, azure-storage-table, azure-storage-queue, azure-storage-file and azure-storage-common packages.
7
+
* Removed `ServiceBuilder.php`, moved static builder methods into `BlobRestProxy`, `TableRestProxy`, `QueueRestProxy` and `FileRestProxy`.
8
+
* Moved method `SharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()` into `BlobSharedAccessSignatureHelper`.
9
+
* Moved method `SharedAccessSignatureHelper::generateTableServiceSharedAccessSignatureToken()` into `TableSharedAccessSignatureHelper`.
10
+
* Moved method `SharedAccessSignatureHelper::generateQueueServiceSharedAccessSignatureToken()` into `QueueSharedAccessSignatureHelper`.
11
+
* Moved method `SharedAccessSignatureHelper::generateFileServiceSharedAccessSignatureToken()` into `FileSharedAccessSignatureHelper`.
12
+
*`CommonMiddleWare` constructor requires storage service version as parameter now.
13
+
*`AccessPolicy` class is now an abstract class, added children classes `BlobAccessPolicy`, `ContainerAccessPolicy`, `TableAccessPolicy`, `QueueAccessPolicy`, `FileAccessPolicy` and `ShareAccessPolicy`.
14
+
* Deprecated PHP 5.5 support.
15
+
16
+
Blob
17
+
* Removed `dataSerializer` parameter from `BlobRextProxy` constructor.
18
+
* Option parameter type of `BlobRestProxy::CreateBlockBlob` and `BlobRestProxy::CreatePageBlobFromContent` changed and added `setUseTransactionalMD5` method.
19
+
20
+
Table
21
+
* Removed `dataSerializer` parameter from `TableRextProxy` constructor.
22
+
* Will change variable type according to EdmType specified when serializing table entity values.
23
+
24
+
Queue
25
+
* Removed `dataSerializer` parameter from `QueueRextProxy` constructor.
26
+
27
+
File
28
+
* Removed `dataSerializer` parameter from `FileRextProxy` constructor.
29
+
* Option parameter type of `FileRestProxy::CreateFileFromContent` changed and added `setUseTransactionalMD5` method.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ If you intend to contribute to the project, please make sure you've followed the
3
3
The Azure Storage development team uses [Eclipse for PHP Developers](http://www.eclipse.org/downloads/packages/eclipse-php-developers/mars2) so instructions will be tailored to that preference. However, any preferred IDE or other toolset should be usable.
4
4
5
5
### Install
6
-
* PHP 5.5, 5.6 or 7.0
6
+
* PHP 5.6 or 7.0 above
7
7
*[Eclipse for PHP Developers](http://www.eclipse.org/downloads/packages/eclipse-php-developers/mars2)
8
8
*[Composer](https://getcomposer.org/) for php packages and tools management.
9
9
*[Apache Ant](http://ant.apache.org/manual/install.html) to drive build scripts.
@@ -42,9 +42,10 @@ Please make sure there's no data inside the storage account used for test. Other
42
42
### Running
43
43
You can use the following commands to run tests:
44
44
45
-
* All unit tests: ``ant phpunit`` or ``phpunit -c phpunit.xml.dist``
46
-
* All functional tests: ``ant phpunit-ft`` or ``phpunit -c phpunit.functional.dist.xml``
47
-
* One particular test case: ``phpunit -c phpunit.dist.xml --filter <case name>`` or ``phpunit -c phpunit.functional.dist.xml --filter <case name>``
45
+
* All tests: ``ant phpunit`` or ``phpunit -c phpunit.xml.dist``
46
+
* All unit tests: ``ant phpunit-ut``
47
+
* All functional tests: ``ant phpunit-ft``
48
+
* One particular test case: ``phpunit -c phpunit.dist.xml --filter <case name>``
48
49
49
50
### Testing Features
50
51
As you develop a feature, you'll need to write tests to ensure quality. Your changes should be covered by both unit tests and functional tests. The unit tests and functional tests codes should be placed under tests/Unit and tests/Functional respectively. You should also run existing tests related to your change to address any unexpected breaks.
Copy file name to clipboardExpand all lines: ChangeLog.md
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,51 @@
1
+
**Note: This changelog is deprecated starting with version 1.0.0, please refer to the ChangeLog.md in each package for future change logs.**
2
+
3
+
2018.01 - version 1.0.0
4
+
5
+
All
6
+
* Split azure-storage composer package into azure-storage-blob, azure-storage-table, azure-storage-queue, azure-storage-file and azure-storage-common packages.
7
+
* Removed `ServiceBuilder.php`, moved static builder methods into `BlobRestProxy`, `TableRestProxy`, `QueueRestProxy` and `FileRestProxy`.
8
+
* Moved method `SharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()` into `BlobSharedAccessSignatureHelper`.
9
+
* Moved method `SharedAccessSignatureHelper::generateTableServiceSharedAccessSignatureToken()` into `TableSharedAccessSignatureHelper`.
10
+
* Moved method `SharedAccessSignatureHelper::generateQueueServiceSharedAccessSignatureToken()` into `QueueSharedAccessSignatureHelper`.
11
+
* Moved method `SharedAccessSignatureHelper::generateFileServiceSharedAccessSignatureToken()` into `FileSharedAccessSignatureHelper`.
12
+
*`CommonMiddleWare` constructor requires storage service version as parameter now.
13
+
*`AccessPolicy` class is now an abstract class, added children classes `BlobAccessPolicy`, `ContainerAccessPolicy`, `TableAccessPolicy`, `QueueAccessPolicy`, `FileAccessPolicy` and `ShareAccessPolicy`.
14
+
* Fixed a bug that `Utilities::allZero()` will return true for non-zero data chunks.
15
+
* Deprecated PHP 5.5 support.
16
+
17
+
Blob
18
+
* Created `BlobSharedAccessSignatureHelper` and moved method `SharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()` into `BlobSharedAccessSignatureHelper`.
19
+
* Added static builder methods `createBlobService` and `createContainerAnonymousAccess` into `BlobRestProxy`.
20
+
* Added `setUseTransactionalMD5` method for options of `BlobRestProxy::CreateBlockBlob` and `BlobRestProxy::CreatePageBlobFromContent`. Default false, enabling transactional MD5 validation will take more cpu and memory resources.
21
+
* Removed `dataSerializer` parameter from `BlobRextProxy` constructor.
22
+
* Fixed a bug that CopyBlobFromURLOptions not found.
23
+
24
+
Table
25
+
* Created `TableSharedAccessSignatureHelper` and moved method `SharedAccessSignatureHelper::generateTableServiceSharedAccessSignatureToken()` into `TableSharedAccessSignatureHelper`.
26
+
* Added static builder methods `createTableService` into `TableRestProxy`.
27
+
* Removed `dataSerializer` parameter from `TableRextProxy` constructor.
28
+
* Will change variable type according to EdmType specified when serializing table entity values.
29
+
30
+
Queue
31
+
* Created `QueueSharedAccessSignatureHelper` and moved method `SharedAccessSignatureHelper::generateQueueServiceSharedAccessSignatureToken()` into `QueueSharedAccessSignatureHelper`.
32
+
* Added static builder methods `createQueueService` into `QueueRestProxy`.
33
+
* Removed `dataSerializer` parameter from `QueueRextProxy` constructor.
34
+
35
+
File
36
+
* Created `FileSharedAccessSignatureHelper` and moved method `SharedAccessSignatureHelper::generateFileServiceSharedAccessSignatureToken()` into `FileSharedAccessSignatureHelper`.
37
+
* Added static builder methods `createFileService` into `FileRestProxy`.
38
+
* Added `setUseTransactionalMD5` method for option of `FileRestProxy::CreateFileFromContent`. Default false, enabling transactional MD5 validation will take more cpu and memory resources.
39
+
* Removed `dataSerializer` parameter from `FileRextProxy` constructor.
40
+
1
41
2017.09 - version 0.19.1
2
42
3
-
ALL
43
+
All
4
44
* Fixed a syntax error for PHP 5.5 and 5.6 in `MicrosoftAzure\Storage\Common\Internal::Utilities:isoDate`.
5
45
6
46
2017.09 - version 0.19.0
7
47
8
-
ALL
48
+
All
9
49
* Fixed wrong `XmlSerializer` in ServiceException.php.
10
50
* Fixed formatting of non-UTC dates when using instances of `DateTime` to generate shared access signatures.
11
51
* Fixed class loading errors on case-sensitive file systems when testing.
Copy file name to clipboardExpand all lines: README.md
+30-21Lines changed: 30 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,17 @@
1
-
# Microsoft Azure Storage SDK for PHP - GA Preview
1
+
# Microsoft Azure Storage PHP Client Libraries
2
2
3
-
This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage services (blobs, tablesand queues). For documentation on how to host PHP applications on Microsoft Azure, please see the [Microsoft Azure PHP Developer Center](http://www.windowsazure.com/en-us/develop/php/).
3
+
This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage services (blobs, tables, queues and files). For documentation on how to host PHP applications on Microsoft Azure, please see the [Microsoft Azure PHP Developer Center](http://www.windowsazure.com/en-us/develop/php/).
> * If you are looking for the Service Bus, Service Runtime, Service Management or Media Services libraries, please visit https://github.com/Azure/azure-sdk-for-php.
12
-
> * If you need big file or 64-bit integer support, please install PHP 7 64-bit version.
14
+
> * If you need big file (larger than 2GB) or 64-bit integer support, please install PHP 7 64-bit version.
13
15
14
16
# Features
15
17
@@ -24,21 +26,24 @@ This project is now in GA Preview stage.
24
26
* Queues
25
27
* create, list, and delete queues, and work with queue metadata and properties
26
28
* create, get, peek, update, delete messages
29
+
* Files
30
+
* create, list, and delete file shares and directories
31
+
* create, delete and download files
27
32
28
33
Please check details on [API reference documents](http://azure.github.io/azure-storage-php).
29
34
30
35
# Getting Started
31
36
## Minimum Requirements
32
37
33
-
* PHP 5.5 or above
38
+
* PHP 5.6 or above
34
39
* See [composer.json](composer.json) for dependencies
35
40
* Required extension for PHP:
36
41
php_fileinfo.dll
37
42
php_mbstring.dll
38
43
php_openssl.dll
39
44
php_xsl.dll
40
45
41
-
*Recommanded extension for PHP:
46
+
*Recommended extension for PHP:
42
47
php_curl.dll
43
48
44
49
## Download Source Code
@@ -55,7 +60,10 @@ To get the source code from GitHub, type
55
60
```json
56
61
{
57
62
"require": {
58
-
"microsoft/azure-storage": "*"
63
+
"microsoft/azure-storage-blob": "*",
64
+
"microsoft/azure-storage-table": "*",
65
+
"microsoft/azure-storage-queue": "*",
66
+
"microsoft/azure-storage-file": "*"
59
67
}
60
68
}
61
69
```
@@ -75,9 +83,9 @@ There are four basic steps that have to be performed before you can make a call
75
83
76
84
* Include the namespaces you are going to use.
77
85
78
-
To create any Microsoft Azure service client you need to use the **ServicesBuilder** class:
86
+
To create any Microsoft Azure service client you need to use the rest proxy classes, such as **BlobRestProxy** class:
79
87
80
-
use MicrosoftAzure\Storage\Common\ServicesBuilder;
88
+
use MicrosoftAzure\Storage\Blob\BlobRestProxy;
81
89
82
90
To process exceptions you need:
83
91
@@ -88,13 +96,17 @@ There are four basic steps that have to be performed before you can make a call
@@ -142,11 +154,9 @@ You can find samples in the [sample folder](samples)
142
154
143
155
# Migrate from [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/)
144
156
145
-
If you are using [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) to access Azure Storage Service, we highly recommend you to migrate to this SDK for faster issue resolution and quicker feature implementation. We are working on supporting the latest service features (including SAS, CORS, append blob, file service, etc) as well as improvement on existing APIs.
157
+
If you are using [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) to access Azure Storage Service, we highly recommend you to migrate to this SDK for faster issue resolution and quicker feature implementation. We are working on supporting the latest service features as well as improvement on existing APIs.
146
158
147
-
For now, Microsoft Azure Storage SDK for PHP v0.10.2 shares almost the same interface as the storage blobs, tables and queues APIs in Azure SDK for PHP v0.4.3. However, there are some minor breaking changes need to be addressed during your migration. You can find the details in [BreakingChanges.md](BreakingChanges.md).
148
-
149
-
Please note that this library is still in preview and may contain more breaking changes in upcoming releases.
159
+
For now, Microsoft Azure Storage PHP client libraries share almost the same interface as the storage blobs, tables, queues and files APIs in Azure SDK for PHP. However, there are some minor breaking changes need to be addressed during your migration. You can find the details in [BreakingChanges.md](BreakingChanges.md).
150
160
151
161
# Need Help?
152
162
@@ -157,5 +167,4 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht
157
167
If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).
158
168
You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md).
159
169
160
-
If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project.
161
-
170
+
If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project.
* Removed `dataSerializer` parameter from `BlobRextProxy` constructor.
4
+
* Option parameter type of `BlobRestProxy::CreateBlockBlob` and `BlobRestProxy::CreatePageBlobFromContent` changed and added `setUseTransactionalMD5` method.
This [repository](https://github.com/azure/azure-storage-blob-php) is currently used for releasing only, please go to [azure-storage-php](https://github.com/azure/azure-storage-php) for submitting issues or contribution.
* Created `BlobSharedAccessSignatureHelper` and moved method `SharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()` into `BlobSharedAccessSignatureHelper`.
4
+
* Added static builder methods `createBlobService` and `createContainerAnonymousAccess` into `BlobRestProxy`.
5
+
* Removed `dataSerializer` parameter from `BlobRextProxy` constructor.
6
+
* Added `setUseTransactionalMD5` method for options of `BlobRestProxy::CreateBlockBlob` and `BlobRestProxy::CreatePageBlobFromContent`. Default false, enabling transactional MD5 validation will take more cpu and memory resources.
7
+
* Fixed a bug that CopyBlobFromURLOptions not found.
0 commit comments