

{{< blocks/products/pf/main-wrap-class isAutogenPage="true" >}}
{{< blocks/products/cells/cells-cloud-upper-banner h1="PHP API to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password" h2="PHP library to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password" p="Use Cells Protect REST API to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password workflows in PHP. This professional solution protects cloud Microsoft Excel and OpenOffice Calc spreadsheet online with passwords using PHP." urlsection="protect/Encrypt-cloud-file-with-password/" >}}
{{< blocks/products/pf/main-container >}}

{{< blocks/products/cells/cells-cloud-section isGrey="true"  title="Protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password - PHP REST API" >}}
{{% blocks/products/cells/cells-cloud-api-reference  apiurl=https://api.aspose.cloud/v3.0/cells/{name}/encryption  apireferenceurl=https://apireference.aspose.cloud/cells/#/Workbook/PostEncryptWorkbook  apimethod=POST %}}
<br/>
Protecting a cloud spreadsheet with a password is a complex task. Protecting a cloud spreadsheet with password transitions is performed by our PHP SDK while maintaining the source spreadsheet's main structural and logical content. Our PHP library is a professional solution to protect cloud spreadsheets with a password online. This Cloud SDK gives PHP developers powerful functionality and perfect API.
<br/>
<br/>
{{% blocks/products/cells/cells-cloud-code-div title="PHP code for encryption cloud spreadsheets" gistPath="https://gist.github.com/aspose-cells-cloud-gists/84283c8ba766ed815f47e6dfb0891152.js?file=Examples-PHP-Workbook-PostEncryptDocument-.php" %}}
  
{{% /blocks/products/cells/cells-cloud-code-div  %}}
<br/>
<br/>
{{< blocks/products/cells/cells-cloud-section-list isGrey="true"  title="How to use Cells Cloud SDK for PHP to encrypt Excel file" >}}
<li>Create an account at <a href="https://dashboard.aspose.cloud/">Dashboard</a> to get free API quota & authorization details</li>
<li>Initialize CellsApi with Client Id, Client Secret, Base URL & API version</li>
<li>Call cellsWorkbookPostEncryptDocument method to get the resultant stream</li>
{{< /blocks/products/cells/cells-cloud-section-list >}}
<br/>
<br/>
{{< blocks/products/cells/cells-cloud-section-list isGrey="true"  title="System Requirements" >}}
<li>PHP 7.4 or newer</li>
{{< /blocks/products/cells/cells-cloud-section-list >}}

{{< /blocks/products/cells/cells-cloud-section >}}

{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}
 