<?php
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-php
require_once('vendor\autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PostUpdateWorksheetCellStyleRequest;;

class Cell {

	public $instance;

	public function __construct() {
		$this->instance =  new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
	}

	public function postUpdateWorksheetCellStyle() {
        $remoteFolder = "TestData/In";

        $localName = "Book1.xlsx";
        $remoteName = "Book1.xlsx";

        $styleFont = new \Aspose\Cells\Cloud\Model\Font();
        $styleFont->setSize(16 ); 
        $style = new \Aspose\Cells\Cloud\Model\Style();
        $style->setFont($styleFont ); 
        $request = new PostUpdateWorksheetCellStyleRequest();
        $request->setName( $remoteName);
        $request->setSheetName( "Sheet1");
        $request->setCellName( "A1");
        $request->setStyle( $style);
        $request->setFolder( $remoteFolder);
        $request->setStorageName( "");
        $this->instance->postUpdateWorksheetCellStyle($request);
    }
}

$instance = new Cell();
$instance->postUpdateWorksheetCellStyle();

?>