{"id":153,"date":"2024-12-21T04:23:33","date_gmt":"2024-12-20T22:53:33","guid":{"rendered":"https:\/\/www.advaitss.co.in\/blogs\/?p=153"},"modified":"2025-07-29T15:20:13","modified_gmt":"2025-07-29T09:50:13","slug":"singleton-class-in-php-how-to-define-and-use-them","status":"publish","type":"post","link":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/","title":{"rendered":"Singleton class in php : How to define and use them"},"content":{"rendered":"\n<h6 class=\"wp-block-heading\">This article explains about how to define and use Singleton class in php<\/h6>\n\n\n\n<p>Define and use a singleton class in php isn&#8217;t that much difficult. To define and use a singleton variable in PHP, you can follow the Singleton design pattern. This pattern ensures that a class has only one instance and provides a global point of access to it. Here\u2019s a step-by-step guide to implementing a singleton in PHP:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Define the Singleton Class in php<\/h3>\n\n\n\n<p>Create a class with a private static variable to hold the single instance, a private constructor to prevent direct instantiation, and a public static method to get the instance.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Singleton {\n    \/\/ Hold the class instance.\n    private static $instance = null;\n\n    \/\/ The constructor is private to prevent initiation with outer code.\n    private function __construct() {\n        \/\/ Initialization code here.\n    }\n\n    \/\/ The object is created from within the class itself only if the class has no instance.\n    public static function getInstance() {\n        if (self::$instance == null) {\n            self::$instance = new Singleton();\n        }\n        return self::$instance;\n    }\n\n    \/\/ Example method to demonstrate functionality.\n    public function doSomething() {\n        echo \"Singleton instance doing something!\";\n    }\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Use the Singleton class in php<\/h3>\n\n\n\n<p>To use the singleton, you call the&nbsp;<code>getInstance<\/code>&nbsp;method. This ensures that you always get the same instance of the class.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$singleton = Singleton::getInstance();\n$singleton-&gt;doSomething();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Private Static Variable<\/strong>:&nbsp;<code>private static $instance<\/code>&nbsp;holds the single instance of the class.<\/li>\n\n\n\n<li><strong>Private Constructor<\/strong>:&nbsp;<code>private function __construct()<\/code>&nbsp;prevents direct creation of the object.<\/li>\n\n\n\n<li><strong>Public Static Method<\/strong>:&nbsp;<code>public static function getInstance()<\/code>&nbsp;checks if an instance already exists. If not, it creates one and returns it.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Common Use Cases<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Database Connections<\/strong>: Ensuring only one connection is used throughout the application.<\/li>\n\n\n\n<li><strong>Configuration Settings<\/strong>: Managing application-wide settings.<\/li>\n\n\n\n<li><strong>Logging<\/strong>: Using a single logging instance to write logs.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example: Database Connection Singleton<\/h3>\n\n\n\n<p>Here\u2019s an example of a singleton for a database connection:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Database {\n    private static $instance = null;\n    private $connection;\n\n    private function __construct() {\n        $this-&gt;connection = new PDO('mysql:host=localhost;dbname=test', 'root', '');\n    }\n\n    public static function getInstance() {\n        if (self::$instance == null) {\n            self::$instance = new Database();\n        }\n        return self::$instance;\n    }\n\n    public function getConnection() {\n        return $this-&gt;connection;\n    }\n}\n\n\/\/ Usage\n$db = Database::getInstance();\n$conn = $db-&gt;getConnection();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example 2: Singleton datastore<\/h3>\n\n\n\n<p>Many times we need a data holder to hold some data for certain duration without directly persisting it in a database. In such case, a datastore helps to achieve the requirement.<\/p>\n\n\n\n<p>This example shows how to use the Singleton pattern to hold data in a\u00a0<code>dataStore<\/code>\u00a0array:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nclass DataStore {\n    private static $instance = null;\n    private $dataStore = &#91;];\n\n    \/\/ Private constructor to prevent direct object creation\n    private function __construct() {}\n\n    \/\/ Method to get the single instance of the class\n    public static function getInstance() {\n        if (self::$instance === null) {\n            self::$instance = new DataStore();\n        }\n        return self::$instance;\n    }\n\n    \/\/ Method to set data in the dataStore array\n    public function setData($key, $value) {\n        $this-&gt;dataStore&#91;$key] = $value;\n    }\n\n    \/\/ Method to get data from the dataStore array\n    public function getData($key) {\n        return isset($this-&gt;dataStore&#91;$key]) ? $this-&gt;dataStore&#91;$key] : null;\n    }\n\n    \/\/ Method to get all data from the dataStore array\n    public function getAllData() {\n        return $this-&gt;dataStore;\n    }\n}\n\n\/\/ Usage example\n$dataStore = DataStore::getInstance();\n$dataStore-&gt;setData('name', 'John Doe');\n$dataStore-&gt;setData('email', 'john.doe@example.com');\n\necho $dataStore-&gt;getData('name'); \/\/ Outputs: John Doe\necho $dataStore-&gt;getData('email'); \/\/ Outputs: john.doe@example.com\n\nprint_r($dataStore-&gt;getAllData()); \/\/ Outputs: Array ( &#91;name] =&gt; John Doe &#91;email] =&gt; john.doe@example.com )\n?&gt;\n<\/code><\/pre>\n\n\n\n<p>In this script:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The\u00a0<code>DataStore<\/code>\u00a0class uses the Singleton pattern to ensure only one instance of the class exists.<\/li>\n\n\n\n<li>The\u00a0<code>setData<\/code>\u00a0method allows you to store data in the\u00a0<code>dataStore<\/code>\u00a0array.<\/li>\n\n\n\n<li>The\u00a0<code>getData<\/code>\u00a0method retrieves data from the\u00a0<code>dataStore<\/code>\u00a0array.<\/li>\n\n\n\n<li>The\u00a0<code>getAllData<\/code>\u00a0method returns the entire\u00a0<code>dataStore<\/code>\u00a0array.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This article explains about how to define and use Singleton class in php Define and use a singleton class in php isn&#8217;t that much difficult. To define and use a singleton variable in PHP, you can follow the Singleton design pattern. This pattern ensures that a class has only one instance and provides a global &#8230; <a title=\"Singleton class in php : How to define and use them\" class=\"read-more\" href=\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\" aria-label=\"Read more about Singleton class in php : How to define and use them\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":216,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[56,57],"class_list":["post-153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development-blogs","tag-php","tag-singleton"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Singleton class in php : How to define and use them - Blogs<\/title>\n<meta name=\"description\" content=\"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Singleton class in php : How to define and use them - Blogs\" \/>\n<meta property=\"og:description\" content=\"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\" \/>\n<meta property=\"og:site_name\" content=\"Blogs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/advaitsoftsol\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-20T22:53:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-29T09:50:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"abhinav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SoftwareAdvait\" \/>\n<meta name=\"twitter:site\" content=\"@SoftwareAdvait\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"abhinav\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\"},\"author\":{\"name\":\"abhinav\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/acc9291ac918c0e83b7673064bae3ec1\"},\"headline\":\"Singleton class in php : How to define and use them\",\"datePublished\":\"2024-12-20T22:53:33+00:00\",\"dateModified\":\"2025-07-29T09:50:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\"},\"wordCount\":322,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp\",\"keywords\":[\"Php\",\"Singleton\"],\"articleSection\":[\"Web development Blogs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\",\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\",\"name\":\"Singleton class in php : How to define and use them - Blogs\",\"isPartOf\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp\",\"datePublished\":\"2024-12-20T22:53:33+00:00\",\"dateModified\":\"2025-07-29T09:50:13+00:00\",\"description\":\"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage\",\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp\",\"contentUrl\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp\",\"width\":960,\"height\":400,\"caption\":\"php singleton design pattern\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.advaitss.co.in\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Singleton class in php : How to define and use them\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#website\",\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/\",\"name\":\"Blogs\",\"description\":\"Blogs that empower you\",\"publisher\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.advaitss.co.in\/blogs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#organization\",\"name\":\"Blogs\",\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2022\/06\/advait_logo_mini.png\",\"contentUrl\":\"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2022\/06\/advait_logo_mini.png\",\"width\":154,\"height\":44,\"caption\":\"Blogs\"},\"image\":{\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/advaitsoftsol\",\"https:\/\/x.com\/SoftwareAdvait\",\"https:\/\/www.linkedin.com\/company\/advait-software-solutions\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/acc9291ac918c0e83b7673064bae3ec1\",\"name\":\"abhinav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ee4ccbe299555553a0c16bc52f19597422866c681c7b8a21ec46d767e6f0acf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ee4ccbe299555553a0c16bc52f19597422866c681c7b8a21ec46d767e6f0acf3?s=96&d=mm&r=g\",\"caption\":\"abhinav\"},\"sameAs\":[\"https:\/\/advaitss.co.in\/blogs\"],\"url\":\"https:\/\/www.advaitss.co.in\/blogs\/author\/abhinav\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Singleton class in php : How to define and use them - Blogs","description":"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/","og_locale":"en_US","og_type":"article","og_title":"Singleton class in php : How to define and use them - Blogs","og_description":"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.","og_url":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/","og_site_name":"Blogs","article_publisher":"https:\/\/www.facebook.com\/advaitsoftsol","article_published_time":"2024-12-20T22:53:33+00:00","article_modified_time":"2025-07-29T09:50:13+00:00","og_image":[{"width":960,"height":400,"url":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp","type":"image\/webp"}],"author":"abhinav","twitter_card":"summary_large_image","twitter_creator":"@SoftwareAdvait","twitter_site":"@SoftwareAdvait","twitter_misc":{"Written by":"abhinav","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#article","isPartOf":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/"},"author":{"name":"abhinav","@id":"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/acc9291ac918c0e83b7673064bae3ec1"},"headline":"Singleton class in php : How to define and use them","datePublished":"2024-12-20T22:53:33+00:00","dateModified":"2025-07-29T09:50:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/"},"wordCount":322,"commentCount":0,"publisher":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/#organization"},"image":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage"},"thumbnailUrl":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp","keywords":["Php","Singleton"],"articleSection":["Web development Blogs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/","url":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/","name":"Singleton class in php : How to define and use them - Blogs","isPartOf":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage"},"image":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage"},"thumbnailUrl":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp","datePublished":"2024-12-20T22:53:33+00:00","dateModified":"2025-07-29T09:50:13+00:00","description":"Singleton class provides functionality to maintain a single instance to reuse the same instance with all over the application.","breadcrumb":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#primaryimage","url":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp","contentUrl":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2024\/12\/php-imppng.webp","width":960,"height":400,"caption":"php singleton design pattern"},{"@type":"BreadcrumbList","@id":"https:\/\/www.advaitss.co.in\/blogs\/singleton-class-in-php-how-to-define-and-use-them\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.advaitss.co.in\/blogs\/"},{"@type":"ListItem","position":2,"name":"Singleton class in php : How to define and use them"}]},{"@type":"WebSite","@id":"https:\/\/www.advaitss.co.in\/blogs\/#website","url":"https:\/\/www.advaitss.co.in\/blogs\/","name":"Blogs","description":"Blogs that empower you","publisher":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.advaitss.co.in\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.advaitss.co.in\/blogs\/#organization","name":"Blogs","url":"https:\/\/www.advaitss.co.in\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2022\/06\/advait_logo_mini.png","contentUrl":"https:\/\/www.advaitss.co.in\/blogs\/wp-content\/uploads\/2022\/06\/advait_logo_mini.png","width":154,"height":44,"caption":"Blogs"},"image":{"@id":"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/advaitsoftsol","https:\/\/x.com\/SoftwareAdvait","https:\/\/www.linkedin.com\/company\/advait-software-solutions"]},{"@type":"Person","@id":"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/acc9291ac918c0e83b7673064bae3ec1","name":"abhinav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.advaitss.co.in\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ee4ccbe299555553a0c16bc52f19597422866c681c7b8a21ec46d767e6f0acf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ee4ccbe299555553a0c16bc52f19597422866c681c7b8a21ec46d767e6f0acf3?s=96&d=mm&r=g","caption":"abhinav"},"sameAs":["https:\/\/advaitss.co.in\/blogs"],"url":"https:\/\/www.advaitss.co.in\/blogs\/author\/abhinav\/"}]}},"_links":{"self":[{"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":3,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/posts\/153\/revisions\/157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/media\/216"}],"wp:attachment":[{"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advaitss.co.in\/blogs\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}