<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shahid Malla</title>
    <description>The latest articles on DEV Community by Shahid Malla (@whmcsexpert).</description>
    <link>https://dev.to/whmcsexpert</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3969237%2F2467132a-de2a-4fda-88fc-c5e937b9434b.jpeg</url>
      <title>DEV Community: Shahid Malla</title>
      <link>https://dev.to/whmcsexpert</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whmcsexpert"/>
    <language>en</language>
    <item>
      <title>Web Design in Kashmir: What Local Businesses Need in 2026</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sun, 29 Nov 2026 11:16:13 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/web-design-in-kashmir-what-local-businesses-need-in-2026-9lo</link>
      <guid>https://dev.to/whmcsexpert/web-design-in-kashmir-what-local-businesses-need-in-2026-9lo</guid>
      <description>&lt;p&gt;Kashmir's businesses have changed a lot in the last few years. Tourists book houseboats on their phones, buyers find saffron and pashmina sellers on Instagram and Google, and students search for schools and coaching centers online. Yet many local businesses still have no website, or one that hasn't been touched in years.&lt;/p&gt;

&lt;p&gt;As a web developer based in Kashmir, here's what I tell local business owners.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Mobile first, always
&lt;/h2&gt;

&lt;p&gt;Most of your visitors come from phones, often on slower mobile data. Your site must:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load in under 3 seconds&lt;/li&gt;
&lt;li&gt;Have big, easy to tap buttons&lt;/li&gt;
&lt;li&gt;Show your phone number and location without scrolling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A heavy site with large sliders and autoplay videos loses customers before they see anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Make booking or ordering easy
&lt;/h2&gt;

&lt;p&gt;For hotels, houseboats and travel agencies, an enquiry or booking form is the most important part of the site. For product sellers, it's a clear "order now" path. For clinics and schools, it's contact and timings.&lt;/p&gt;

&lt;p&gt;Every page should answer: what do you offer, how much, and how do I contact you?&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Local SEO matters more than anything
&lt;/h2&gt;

&lt;p&gt;When someone searches "houseboat in Dal Lake" or "web designer in Srinagar", Google shows local results first. To show up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create and verify your Google Business Profile&lt;/li&gt;
&lt;li&gt;Use your city and area names naturally in page titles and content&lt;/li&gt;
&lt;li&gt;Keep your name, address and phone number the same everywhere&lt;/li&gt;
&lt;li&gt;Ask happy customers for Google reviews&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Show real photos
&lt;/h2&gt;

&lt;p&gt;Stock photos of mountains won't win trust. Real photos of your rooms, products, team and shop do. Kashmir is beautiful; let your own pictures show it.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Secure and reliable hosting
&lt;/h2&gt;

&lt;p&gt;Cheap hosting that goes down during tourist season costs real money. Use hosting with SSL, daily backups and support you can actually reach.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Sell beyond Kashmir
&lt;/h2&gt;

&lt;p&gt;Kashmiri products have buyers all over India and the world. A simple online store with secure payments and shipping options can turn a local shop into a national brand.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Keep it updated
&lt;/h2&gt;

&lt;p&gt;An old price list or an event from 2022 on your homepage tells visitors you might not be active. Update your site at least every season.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a good starter website includes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Home page with clear offer and contact&lt;/li&gt;
&lt;li&gt;About page with your story&lt;/li&gt;
&lt;li&gt;Services or products with prices&lt;/li&gt;
&lt;li&gt;Gallery of real photos&lt;/li&gt;
&lt;li&gt;Contact page with map, phone and enquiry form&lt;/li&gt;
&lt;li&gt;Basic SEO setup and Google Business Profile link&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;A good website is no longer a luxury for Kashmiri businesses. It's where customers decide whether to call you or your competitor.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a full stack developer and web designer from Kashmir. If you run a local business and have questions about getting online, ask in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>seo</category>
      <category>kashmir</category>
    </item>
    <item>
      <title>Starting a Tech Startup in Kashmir: Challenges and Opportunities</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:32:14 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/starting-a-tech-startup-in-kashmir-challenges-and-opportunities-414n</link>
      <guid>https://dev.to/whmcsexpert/starting-a-tech-startup-in-kashmir-challenges-and-opportunities-414n</guid>
      <description>&lt;p&gt;People often ask me if it's possible to build a tech business from Kashmir. My answer is yes, but you need to know what you're up against and where your advantages are.&lt;/p&gt;

&lt;h2&gt;
  
  
  The challenges
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Connectivity.&lt;/strong&gt; Kashmir has faced long internet shutdowns in the past. Today connectivity is much better, but a backup connection (a second ISP plus mobile data) is still a must for anyone working with global clients.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A small local ecosystem.&lt;/strong&gt; There are fewer investors, incubators and tech meetups than in Bengaluru or Delhi. You often have to find your mentors and community online.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Perception.&lt;/strong&gt; Some international clients hesitate before working with someone from a region they only know from the news. Your work, reviews and communication have to speak louder than that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Talent.&lt;/strong&gt; Skilled developers often move away for jobs. Building a local team means investing in training.&lt;/p&gt;

&lt;h2&gt;
  
  
  The opportunities
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Low costs.&lt;/strong&gt; Rent, salaries and living costs are far lower than in metro cities. You can run lean for longer, which is a huge advantage in the early days.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Global clients from day one.&lt;/strong&gt; Freelance platforms, remote work and online payments mean your customers can be anywhere. Your time zone (UTC+5:30) overlaps well with Europe and the Middle East, and you can deliver overnight for US clients.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Government support.&lt;/strong&gt; Programs like JKEDI (Jammu and Kashmir Entrepreneurship Development Institute) and Startup India offer training, mentorship and funding schemes for new founders. Look into what's currently open before you start.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An untapped local market.&lt;/strong&gt; Many Kashmiri businesses still need websites, online stores, booking systems and digital marketing. Tourism, handicrafts, saffron, dry fruits, education and healthcare all need better tech.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unique products.&lt;/strong&gt; Kashmiri goods have strong demand across India and abroad. Tech that connects local producers to global buyers has real potential.&lt;/p&gt;

&lt;h2&gt;
  
  
  What worked for me
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start with services.&lt;/strong&gt; Freelancing paid my bills and taught me what clients actually need.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick a niche.&lt;/strong&gt; For me it was WHMCS and web hosting. Being the specialist beats being one of a million generalists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn repeated work into products.&lt;/strong&gt; After building similar WHMCS features for many clients, I packaged them into products at WHMCSPilot.com.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build trust online.&lt;/strong&gt; A strong portfolio, reviews and a personal website matter more than a fancy office.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep learning.&lt;/strong&gt; I moved from hosting support into Laravel, NestJS, Next.js, React and AI chatbots as the market changed.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Advice for new founders in Kashmir
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Solve a problem you understand deeply&lt;/li&gt;
&lt;li&gt;Keep your costs low and your runway long&lt;/li&gt;
&lt;li&gt;Sell before you build too much&lt;/li&gt;
&lt;li&gt;Connect with other founders online and offline&lt;/li&gt;
&lt;li&gt;Don't wait for the perfect ecosystem; build it&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Kashmir won't be a startup hub overnight, but every founder who builds something here makes it easier for the next one.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a full stack developer and founder based in Kashmir. If you're building something here, tell me about it in the comments.&lt;/p&gt;

</description>
      <category>startup</category>
      <category>entrepreneurship</category>
      <category>career</category>
      <category>kashmir</category>
    </item>
    <item>
      <title>From Freelancer to Product Founder: The WHMCSPilot Story</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:31:43 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/from-freelancer-to-product-founder-the-whmcspilot-story-47c1</link>
      <guid>https://dev.to/whmcsexpert/from-freelancer-to-product-founder-the-whmcspilot-story-47c1</guid>
      <description>&lt;p&gt;Freelancing pays well, but your income stops the moment you stop working. At some point I wanted something that could earn while I slept. That's how WHMCSPilot.com started.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern I kept seeing
&lt;/h2&gt;

&lt;p&gt;After years of WHMCS projects, I noticed the same requests coming again and again:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Can you make our client area look modern?"&lt;/li&gt;
&lt;li&gt;"Can you connect WHMCS to this panel?"&lt;/li&gt;
&lt;li&gt;"Can you add this feature to the order form?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each client paid for a custom build of something I had already built, in some form, for someone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning services into products
&lt;/h2&gt;

&lt;p&gt;The idea was simple: take the best, most requested work and package it so any hosting company can buy and install it in minutes. That became WHMCSPilot, a collection of commercial WHMCS modules and themes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed when building products
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Code quality.&lt;/strong&gt; Client code only has to work for one setup. Product code has to work on hundreds of different WHMCS installs, PHP versions and server configurations. I had to write cleaner, more defensive code and test far more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Documentation.&lt;/strong&gt; A freelancer explains things in chat. A product needs install guides, FAQs and changelogs that answer questions before they're asked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Updates.&lt;/strong&gt; Every WHMCS release can break something. Products need ongoing maintenance and compatibility testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Licensing.&lt;/strong&gt; Commercial modules need license validation, so I built licensing APIs to activate, validate and deactivate installs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Support.&lt;/strong&gt; One client is easy. Hundreds of buyers need a proper support system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build what people already pay for.&lt;/strong&gt; My best product ideas came from repeat freelance requests, not guesses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start small.&lt;/strong&gt; One good product beats ten half finished ones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep freelancing while you build.&lt;/strong&gt; Services fund the product until it can stand on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Listen to buyers.&lt;/strong&gt; Feature requests and support tickets are your roadmap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compatibility is a feature.&lt;/strong&gt; Hosting owners care most that it just works after updates.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Advice if you want to do the same
&lt;/h2&gt;

&lt;p&gt;Look at your last 20 freelance projects. What did you build more than three times? That's probably your first product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Going from freelancer to product founder doesn't mean quitting client work overnight. It means slowly turning your experience into something reusable.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, founder of WHMCSPilot.com and a full stack developer from Kashmir. Thinking about building your first product? Let's talk in the comments.&lt;/p&gt;

</description>
      <category>startup</category>
      <category>saas</category>
      <category>whmcs</category>
      <category>entrepreneurship</category>
    </item>
    <item>
      <title>Building SaaS Apps with Laravel and Next.js: My Stack</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:31:26 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/building-saas-apps-with-laravel-and-nextjs-my-stack-3f9a</link>
      <guid>https://dev.to/whmcsexpert/building-saas-apps-with-laravel-and-nextjs-my-stack-3f9a</guid>
      <description>&lt;p&gt;I've built SaaS products, CRMs, booking platforms and AI tools for clients. Over time I settled on a stack that lets me ship fast without painting myself into a corner. Here it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backend: Laravel (or NestJS)
&lt;/h2&gt;

&lt;p&gt;Laravel is my default backend for most SaaS projects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast development.&lt;/strong&gt; Auth, queues, mail, file storage and scheduling are built in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eloquent ORM.&lt;/strong&gt; Clean models and relationships.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sanctum&lt;/strong&gt; for API token and SPA authentication.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Queues with Redis&lt;/strong&gt; for emails, webhooks and heavy jobs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cashier&lt;/strong&gt; when the product needs Stripe subscriptions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a project needs a strongly typed TypeScript backend, or the team is already all in on Node, I use NestJS instead. Its module structure works well for larger APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frontend: Next.js with React
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App Router&lt;/strong&gt; for layouts and server components&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server side rendering&lt;/strong&gt; for marketing pages and SEO&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client components&lt;/strong&gt; for dashboards and interactive features&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; for fast, consistent styling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The frontend talks to Laravel through a REST API. Keeping them separate means the same API can serve a mobile app later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Database and storage
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MySQL or PostgreSQL&lt;/strong&gt; for core data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redis&lt;/strong&gt; for cache, sessions and queues&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;S3 compatible storage&lt;/strong&gt; for uploads&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Multi tenancy
&lt;/h2&gt;

&lt;p&gt;Most SaaS apps need to separate data between customers. For smaller apps, I use a &lt;code&gt;tenant_id&lt;/code&gt; column with global scopes in Laravel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;booted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;static&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;addGlobalScope&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'tenant'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nv"&gt;$query&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'tenant_id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;user&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;tenant_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For enterprise clients who need full isolation, a separate database per tenant is safer.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI features
&lt;/h2&gt;

&lt;p&gt;More clients now want AI built in: chatbots, document search and content generation. I connect LLM APIs on the backend, store embeddings for search, and stream responses to the Next.js frontend. Keys never touch the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deployment
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Laravel on a VPS with Nginx and PHP FPM, or a managed platform&lt;/li&gt;
&lt;li&gt;Next.js on a Node server or a platform built for it&lt;/li&gt;
&lt;li&gt;GitHub Actions for CI/CD&lt;/li&gt;
&lt;li&gt;Daily database backups and uptime monitoring from day one&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this stack works for MVPs
&lt;/h2&gt;

&lt;p&gt;You can launch an MVP in weeks, not months, and the same code scales when the product grows. No rewrites needed after your first 1,000 users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;There's no perfect stack, only one that fits your team and your product. This one has worked well for me across many client projects.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a full stack developer from Kashmir building SaaS apps, CRMs and AI tools. What's your go to SaaS stack? Tell me in the comments.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>nextjs</category>
      <category>saas</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Building a Custom WHMCS Theme That Survives Updates</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:31:18 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/building-a-custom-whmcs-theme-that-survives-updates-4i15</link>
      <guid>https://dev.to/whmcsexpert/building-a-custom-whmcs-theme-that-survives-updates-4i15</guid>
      <description>&lt;p&gt;The fastest way to make a hosting company look more professional is a better WHMCS client area. The fastest way to break it is editing the default theme directly. Here's how I build themes that keep working after every WHMCS update.&lt;/p&gt;

&lt;h2&gt;
  
  
  The golden rule: use a child theme
&lt;/h2&gt;

&lt;p&gt;WHMCS supports child themes. Your theme inherits everything from a parent (like &lt;code&gt;twenty-one&lt;/code&gt;) and only overrides what you change. When WHMCS updates the parent, your changes stay safe.&lt;/p&gt;

&lt;p&gt;Create a folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/templates/mytheme/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;theme.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"My Hosting Theme"&lt;/span&gt;
&lt;span class="na"&gt;parent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;twenty-one&lt;/span&gt;
&lt;span class="na"&gt;author&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Your Name"&lt;/span&gt;
&lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;bootstrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then select it under Setup &amp;gt; General Settings &amp;gt; General &amp;gt; Template.&lt;/p&gt;

&lt;h2&gt;
  
  
  Override only what you need
&lt;/h2&gt;

&lt;p&gt;Copy a single &lt;code&gt;.tpl&lt;/code&gt; file from the parent into your child theme and edit it. For example, to change the header, copy &lt;code&gt;header.tpl&lt;/code&gt;. Everything you don't copy still comes from the parent.&lt;/p&gt;

&lt;p&gt;Keep a list of overridden files in a README. After each WHMCS update, compare those files with the new parent versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add your own CSS
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;/templates/mytheme/css/custom.css&lt;/code&gt; and load it in &lt;code&gt;head.tpl&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{$WEB_ROOT}/templates/{$template}/css/custom.css?v=1"&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use CSS variables so rebranding later is a two minute job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--brand&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#2563eb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--brand-dark&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#1e40af&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.btn-primary&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--brand&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--brand&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--radius&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Don't forget the order form
&lt;/h2&gt;

&lt;p&gt;The order form is a separate template under &lt;code&gt;/templates/orderforms/&lt;/code&gt;. Create a child order form the same way, with its own &lt;code&gt;theme.yaml&lt;/code&gt; and &lt;code&gt;parent: standard_cart&lt;/code&gt;. This is where conversions happen, so:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove distractions during checkout&lt;/li&gt;
&lt;li&gt;Show trust signals (uptime, support hours, money back guarantee)&lt;/li&gt;
&lt;li&gt;Make the price and billing cycle crystal clear&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Match your marketing site
&lt;/h2&gt;

&lt;p&gt;Clients notice when the website and client area look like two different companies. Use the same fonts, colors, logo and navigation. Many hosts I've worked with saw fewer "is this site legit?" tickets after matching the two.&lt;/p&gt;

&lt;h2&gt;
  
  
  Performance tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Compress images and use SVG icons&lt;/li&gt;
&lt;li&gt;Don't load extra libraries that WHMCS already includes&lt;/li&gt;
&lt;li&gt;Add a version query string to CSS and JS so updates bust the cache&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Testing checklist
&lt;/h2&gt;

&lt;p&gt;Before going live, check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Login, register and password reset&lt;/li&gt;
&lt;li&gt;Order form for every product type and gateway&lt;/li&gt;
&lt;li&gt;Invoices, quotes and tickets&lt;/li&gt;
&lt;li&gt;Mobile layout on a real phone&lt;/li&gt;
&lt;li&gt;Email templates (these are separate from the theme)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;A child theme takes a little more planning but saves hours every update. Your client area stays modern and your changes never disappear.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a WHMCS developer from Kashmir. Questions about theming? Leave them below.&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>css</category>
      <category>webdev</category>
      <category>hosting</category>
    </item>
    <item>
      <title>Adding an AI Chatbot to Your Hosting Business</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:30:59 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/adding-an-ai-chatbot-to-your-hosting-business-3hfp</link>
      <guid>https://dev.to/whmcsexpert/adding-an-ai-chatbot-to-your-hosting-business-3hfp</guid>
      <description>&lt;p&gt;Hosting support gets the same questions every day. "How do I point my domain?" "Where is my cPanel login?" "Why is my email not working?" An AI chatbot can answer most of these instantly, day and night, and pass the hard ones to your team.&lt;/p&gt;

&lt;p&gt;Here's how I build them for hosting companies.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the chatbot should handle
&lt;/h2&gt;

&lt;p&gt;Good fits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DNS and nameserver questions&lt;/li&gt;
&lt;li&gt;Email setup for Outlook, Gmail and phones&lt;/li&gt;
&lt;li&gt;How to use cPanel, Plesk or your panel&lt;/li&gt;
&lt;li&gt;Plan comparisons and pre sales questions&lt;/li&gt;
&lt;li&gt;Billing questions like due dates and payment methods&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hand off to humans:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Server down or data loss&lt;/li&gt;
&lt;li&gt;Account specific changes&lt;/li&gt;
&lt;li&gt;Refunds and complaints&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Gather your knowledge
&lt;/h2&gt;

&lt;p&gt;The bot is only as good as what it knows. Collect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Knowledgebase articles&lt;/li&gt;
&lt;li&gt;Product and pricing pages&lt;/li&gt;
&lt;li&gt;Your terms of service and refund policy&lt;/li&gt;
&lt;li&gt;Answers from past support tickets (with personal data removed)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Retrieval, not guessing
&lt;/h2&gt;

&lt;p&gt;Instead of letting the AI answer from general knowledge, I use retrieval augmented generation (RAG):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Split your content into small chunks&lt;/li&gt;
&lt;li&gt;Store embeddings of each chunk in a vector database&lt;/li&gt;
&lt;li&gt;When a client asks a question, find the most relevant chunks&lt;/li&gt;
&lt;li&gt;Send those chunks plus the question to the language model&lt;/li&gt;
&lt;li&gt;The model answers using your own content&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This keeps answers accurate and specific to your services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Connect it to WHMCS
&lt;/h2&gt;

&lt;p&gt;This is where a hosting chatbot becomes really useful. With the WHMCS API, a logged in client can ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"When is my next invoice due?"&lt;/li&gt;
&lt;li&gt;"What's my hosting plan?"&lt;/li&gt;
&lt;li&gt;"Open a ticket for me"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bot calls WHMCS through a secure backend, never directly from the browser, and only after verifying who the user is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Smart handoff
&lt;/h2&gt;

&lt;p&gt;When the bot isn't confident, or the client asks for a human, it should:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a WHMCS support ticket with the full chat history&lt;/li&gt;
&lt;li&gt;Tell the client when to expect a reply&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No client should feel trapped talking to a bot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Guardrails
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Never share account data without authentication&lt;/li&gt;
&lt;li&gt;Limit what actions the bot can perform&lt;/li&gt;
&lt;li&gt;Log every conversation for review&lt;/li&gt;
&lt;li&gt;Review wrong answers weekly and improve your content&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results to expect
&lt;/h2&gt;

&lt;p&gt;In my experience, a well trained bot can handle a big share of basic tickets, give instant replies at 3 AM and free your team for real technical work. Pre sales chats also convert better when questions get answered right away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;An AI chatbot won't replace your support team, but it makes them faster and keeps clients happier.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a full stack developer from Kashmir who builds AI chatbots and WHMCS integrations for hosting companies. Questions about AI for hosting? Drop them in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>chatbot</category>
      <category>hosting</category>
      <category>whmcs</category>
    </item>
    <item>
      <title>My Journey to Top Rated on Fiverr and Upwork: Mistakes, AI and Never Stopping</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:30:42 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/my-journey-to-top-rated-on-fiverr-and-upwork-mistakes-ai-and-never-stopping-3c3k</link>
      <guid>https://dev.to/whmcsexpert/my-journey-to-top-rated-on-fiverr-and-upwork-mistakes-ai-and-never-stopping-3c3k</guid>
      <description>&lt;p&gt;Today I'm a Top Rated seller on both Fiverr and Upwork, working from Kashmir. But my path wasn't smooth or fast. I made a lot of mistakes, the market changed under my feet, and more than once I had to start learning again from zero.&lt;/p&gt;

&lt;p&gt;This is my honest story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building everything I could
&lt;/h2&gt;

&lt;p&gt;I started with web hosting and WHMCS. Installations, hosting websites, cPanel fixes, server issues. Small jobs, but they taught me how real businesses work and what clients actually need.&lt;/p&gt;

&lt;p&gt;Over time I took on almost every kind of project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ecommerce stores&lt;/strong&gt; with payments, shipping and inventory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Health and medical platforms&lt;/strong&gt; with appointments, patient portals and secure data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WHMCS modules, themes and integrations&lt;/strong&gt; for hosting companies around the world&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom web apps and SaaS&lt;/strong&gt; in Laravel, NestJS, Next.js and React&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every project taught me something new. Some were easy, some kept me awake at night, but I enjoyed all of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then AI changed everything
&lt;/h2&gt;

&lt;p&gt;A few years ago, the freelance market shifted almost overnight. Clients started asking: "Can't AI do this?" Simple website and fix jobs became cheaper and harder to win. Many freelancers I knew struggled.&lt;/p&gt;

&lt;p&gt;I could have complained. Instead, I decided to learn.&lt;/p&gt;

&lt;p&gt;I invested my time in AI: how large language models work, how to connect them to real business data, and how to build things people actually pay for. Step by step I started building:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI chatbots&lt;/strong&gt; trained on a company's own content&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI agents&lt;/strong&gt; that take actions, not just answer questions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI features inside SaaS apps&lt;/strong&gt; like smart search, automation and content tools&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI support bots&lt;/strong&gt; for hosting businesses connected to WHMCS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI didn't end my career. It opened a bigger one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mistakes I made
&lt;/h2&gt;

&lt;p&gt;I want to be honest here, because these mistakes cost me a lot of time and money.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. I started late.&lt;/strong&gt; I spent years doing work locally and in small circles before taking freelancing platforms seriously. Many sellers who started earlier had a big head start in reviews and ranking.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. I didn't adopt early.&lt;/strong&gt; When new tools and trends appeared, I waited to see if they would last. By the time I joined, the early movers already owned the space. I made the same mistake at first with AI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. I created duplicate gigs.&lt;/strong&gt; I made many similar WHMCS gigs, thinking more gigs meant more orders. Instead it split my reviews, confused buyers and weakened every gig.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. I replied late.&lt;/strong&gt; Sometimes I took hours to reply to new messages. On these platforms, a slow reply often means the buyer has already hired someone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I fixed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;I reply fast.&lt;/strong&gt; Now I answer quickly, even if it's just "Thanks, I'll review this and get back to you within the hour." Fast replies win more orders than perfect replies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I adopt new skills quickly.&lt;/strong&gt; I no longer wait for a trend to prove itself. When I see clients asking for something new, I start learning it right away. That's how I moved into AI chatbots and agents early enough to matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I cleaned up my gigs.&lt;/strong&gt; Fewer, stronger gigs with clear offers. Each one solves a specific problem for a specific buyer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I deliver on time and communicate clearly.&lt;/strong&gt; Regular updates, screenshots and short videos so clients always know where their project stands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I focus on solving hard problems.&lt;/strong&gt; Broken provisioning, failed migrations, complex integrations. Fixing what others couldn't earned me five star reviews and long term clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Never stop learning
&lt;/h2&gt;

&lt;p&gt;If there's one thing that kept me going, it's this: I never stopped learning. Hosting, WHMCS, ecommerce, medical platforms, SaaS, and now AI. Every few years the market changes, and every time, learning is what saves you.&lt;/p&gt;

&lt;p&gt;And honestly, I've enjoyed every step of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advice for new freelancers
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start now.&lt;/strong&gt; Don't wait until you feel ready. I wish I had started earlier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adopt early.&lt;/strong&gt; When you see a new skill gaining demand, learn it before everyone else does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reply fast.&lt;/strong&gt; Speed builds trust and wins orders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep your gigs focused.&lt;/strong&gt; One strong gig beats five weak copies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep learning.&lt;/strong&gt; The market will change. Make sure you change with it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Top Rated didn't come from one big project. It came from years of work, many mistakes, fixing them one by one, and never stopping.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a full stack developer from Kashmir building ecommerce, medical, WHMCS and AI solutions. You can see my work, projects and services at &lt;a href="https://shahidmalla.com" rel="noopener noreferrer"&gt;shahidmalla.com&lt;/a&gt;. If you're starting your freelance journey, ask me anything in the comments.&lt;/p&gt;

</description>
      <category>freelancing</category>
      <category>career</category>
      <category>fiverr</category>
      <category>upwork</category>
    </item>
    <item>
      <title>10 WHMCS Hooks Every Hosting Company Should Use</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:58:32 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/10-whmcs-hooks-every-hosting-company-should-use-1l1d</link>
      <guid>https://dev.to/whmcsexpert/10-whmcs-hooks-every-hosting-company-should-use-1l1d</guid>
      <description>&lt;p&gt;Hooks are the easiest way to customize WHMCS without touching core files. Drop a PHP file in &lt;code&gt;/includes/hooks/&lt;/code&gt; and WHMCS runs your code when an event happens.&lt;/p&gt;

&lt;p&gt;Here are 10 hooks I add for almost every hosting client.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Notify your team when an invoice is paid
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'InvoicePaid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Invoice #{$vars['invoiceid']} paid"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;$ch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;curl_init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://hooks.slack.com/services/XXX'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;curl_setopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CURLOPT_POSTFIELDS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;json_encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'text'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$msg&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;curl_setopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CURLOPT_HTTPHEADER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;curl_setopt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CURLOPT_RETURNTRANSFER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;curl_exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;curl_close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Block disposable email signups
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ClientDetailsValidation'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$blocked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'mailinator.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'tempmail.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'10minutemail.com'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;$domain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;strtolower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;substr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;strrchr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'email'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'@'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;in_array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$domain&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$blocked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Please use a real email address.'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Add a custom message to the client area
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ClientAreaHomepagePanels'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$panels&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$panels&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;addChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'notice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'label'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Scheduled Maintenance'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'icon'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'fa-wrench'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'bodyHtml'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;p&amp;gt;Server maintenance on Sunday 2 AM UTC.&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'order'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Tag high value clients automatically
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="no"&gt;WHMCS&lt;/span&gt;\&lt;span class="nc"&gt;Database&lt;/span&gt;\&lt;span class="nc"&gt;Capsule&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'InvoicePaid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$invoice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Capsule&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'tblinvoices'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'invoiceid'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$invoice&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;$invoice&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Capsule&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'tblclients'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$invoice&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;userid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'groupid'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// VIP group&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Sync new clients to your CRM or mailing list
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;ClientAdd&lt;/code&gt; to push the new client's name and email to your CRM API.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Open a ticket when provisioning fails
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'AfterModuleCreateFailed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;localAPI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'OpenTicket'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'deptid'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'subject'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Provisioning failed for service #'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'params'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serviceid'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'message'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'failureResponseMessage'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'clientid'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'params'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'userid'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'admin'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now no failed order goes unnoticed.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Add extra variables to email templates
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'EmailPreSend'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'support_hours'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Mon to Sat, 9 AM to 9 PM IST'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;{$support_hours}&lt;/code&gt; in any template.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Redirect after logout
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ClientLogout'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;header&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Location: https://yourhost.com/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. Add tracking scripts to the client area footer
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ClientAreaFooterOutput'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$vars&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;script&amp;gt;/* analytics code */&amp;lt;/script&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. Daily cleanup or reports with the cron
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'DailyCronJob'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// send yourself a daily revenue summary, clean old logs, etc.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One hook per file with a clear name like &lt;code&gt;slack_invoice_paid.php&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Wrap risky code in try/catch so one error doesn't break checkout.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;Capsule&lt;/code&gt; for database queries, never raw SQL with user input.&lt;/li&gt;
&lt;li&gt;Test on staging first. A broken hook can take down your whole client area.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Hooks give you 80 percent of the customization most hosts need with very little code. If you need something more complex, that's when an addon module makes sense.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a WHMCS developer from Kashmir. Share your favorite hook in the comments.&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>php</category>
      <category>hosting</category>
      <category>automation</category>
    </item>
    <item>
      <title>How to Build a Custom WHMCS Provisioning Module (Step by Step)</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:58:09 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/how-to-build-a-custom-whmcs-provisioning-module-step-by-step-13g7</link>
      <guid>https://dev.to/whmcsexpert/how-to-build-a-custom-whmcs-provisioning-module-step-by-step-13g7</guid>
      <description>&lt;p&gt;If you run a hosting business on a panel WHMCS doesn't support out of the box, a custom provisioning module is how you automate it. In this guide I'll walk through the structure I use for every module I build.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a provisioning module does
&lt;/h2&gt;

&lt;p&gt;A provisioning (server) module connects WHMCS to an external system. When a client orders, pays, gets suspended or cancels, WHMCS calls your module and your module talks to the panel API.&lt;/p&gt;

&lt;p&gt;Modules live in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;modules&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;servers&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;yourmodule&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;yourmodule&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The folder name, file name and function prefix must all match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Metadata
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;defined&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'WHMCS'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;die&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'This file cannot be accessed directly'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;yourmodule_MetaData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'DisplayName'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Your Panel'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'APIVersion'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'1.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'RequiresServer'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Config options
&lt;/h2&gt;

&lt;p&gt;These appear on the product's Module Settings tab. Use them for plan names, disk limits or package IDs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;yourmodule_ConfigOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'Plan'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'Type'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'text'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'Size'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'25'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'Description'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Plan ID on the panel'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'Disk (GB)'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'Type'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'text'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'Size'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'5'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'Default'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'10'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside other functions you read them as &lt;code&gt;$params['configoption1']&lt;/code&gt;, &lt;code&gt;$params['configoption2']&lt;/code&gt; and so on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: A small API client
&lt;/h2&gt;

&lt;p&gt;Keep HTTP logic out of the module functions. A tiny client class keeps things clean and testable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;YourPanelClient&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="nv"&gt;$host&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="nv"&gt;$token&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;__construct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;rtrim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$token&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$ch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;curl_init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://{$this-&amp;gt;host}/api/{$path}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nf"&gt;curl_setopt_array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="no"&gt;CURLOPT_CUSTOMREQUEST&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="no"&gt;CURLOPT_RETURNTRANSFER&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="no"&gt;CURLOPT_TIMEOUT&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="no"&gt;CURLOPT_HTTPHEADER&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
                &lt;span class="s1"&gt;'Authorization: Bearer '&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="no"&gt;CURLOPT_POSTFIELDS&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nb"&gt;json_encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;curl_exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$code&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;curl_getinfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CURLINFO_HTTP_CODE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nf"&gt;curl_close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nv"&gt;$result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$code&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'message'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"API error {$code}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Core functions
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;yourmodule_CreateAccount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;YourPanelClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverhostname'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverpassword'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'users'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'username'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'username'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'password'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'password'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'email'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'clientsdetails'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'email'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'plan'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'configoption1'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nf"&gt;logModuleCall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'yourmodule'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;__FUNCTION__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'created'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;logModuleCall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'yourmodule'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;__FUNCTION__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;yourmodule_SuspendAccount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;YourPanelClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverhostname'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverpassword'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"users/{$params['username']}/suspend"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow the same pattern for &lt;code&gt;UnsuspendAccount&lt;/code&gt;, &lt;code&gt;TerminateAccount&lt;/code&gt;, &lt;code&gt;ChangePassword&lt;/code&gt; and &lt;code&gt;ChangePackage&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Test connection
&lt;/h2&gt;

&lt;p&gt;Admins love this button on the server setup page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;yourmodule_TestConnection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;YourPanelClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverhostname'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverpassword'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'GET'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ping'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'success'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'success'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 6: Client area output
&lt;/h2&gt;

&lt;p&gt;Give clients a login button or usage stats with &lt;code&gt;ClientArea&lt;/code&gt; and a Smarty template, and add one-click SSO with &lt;code&gt;ServiceSingleSignOn&lt;/code&gt; if the panel supports it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips from real projects
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Always use &lt;code&gt;logModuleCall()&lt;/code&gt;. When something breaks you'll find it in Utilities &amp;gt; Logs &amp;gt; Module Log.&lt;/li&gt;
&lt;li&gt;Never return &lt;code&gt;true&lt;/code&gt; on failure. Return the real error string so admins know what went wrong.&lt;/li&gt;
&lt;li&gt;Mask passwords and tokens in logs using the fifth parameter of &lt;code&gt;logModuleCall()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Test every action on a staging WHMCS before going live.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Once your module is solid, your hosting business runs on autopilot: orders provision instantly, unpaid services suspend on time and support tickets drop.&lt;/p&gt;

&lt;p&gt;I'm Shahid Malla, a WHMCS developer from Kashmir with 12+ years in hosting. If you're stuck on a module, ask in the comments.&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>php</category>
      <category>webdev</category>
      <category>hosting</category>
    </item>
    <item>
      <title>WHMCS Development, Web Design and Building a Startup in Kashmir</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:57:06 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/whmcs-development-web-design-and-building-a-startup-in-kashmir-5bgm</link>
      <guid>https://dev.to/whmcsexpert/whmcs-development-web-design-and-building-a-startup-in-kashmir-5bgm</guid>
      <description>&lt;p&gt;I'm Shahid Malla, a full stack developer and WHMCS specialist based in Kashmir, India. For over 12 years I've worked on hosting platforms, WHMCS setups, SaaS apps and custom web design for clients around the world. Here's what I've learned about WHMCS, web design and running a tech startup from Kashmir.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why WHMCS still matters
&lt;/h2&gt;

&lt;p&gt;WHMCS is the billing and automation backbone for thousands of hosting companies. It handles signups, invoicing, provisioning, support tickets and domain management in one place. Out of the box it works, but most growing hosts hit its limits fast:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The default client area looks dated and hurts conversions&lt;/li&gt;
&lt;li&gt;Provisioning for custom panels or VPS platforms isn't supported&lt;/li&gt;
&lt;li&gt;Payment gateways for local markets are missing&lt;/li&gt;
&lt;li&gt;Reporting and automation don't fit the business workflow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's where custom WHMCS development comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common WHMCS development work
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Provisioning modules&lt;/strong&gt;&lt;br&gt;
Connect WHMCS to any control panel or API so accounts are created, suspended and terminated automatically. A good module uses the standard &lt;code&gt;_CreateAccount&lt;/code&gt;, &lt;code&gt;_SuspendAccount&lt;/code&gt; and &lt;code&gt;_TerminateAccount&lt;/code&gt; functions and logs every API call with &lt;code&gt;logModuleCall()&lt;/code&gt; for easy debugging.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mypanel_CreateAccount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MyPanelClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverhostname'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'serverpassword'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nv"&gt;$api&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;createUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'username'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'password'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'configoption1'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;logModuleCall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'mypanel'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;__FUNCTION__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Addon modules&lt;/strong&gt;&lt;br&gt;
Admin tools, dashboards, reseller features and integrations with CRMs or chat tools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Hooks&lt;/strong&gt;&lt;br&gt;
Small pieces of code that react to events like &lt;code&gt;InvoicePaid&lt;/code&gt; or &lt;code&gt;ClientAdd&lt;/code&gt;. Great for sending data to Slack, syncing users or applying custom discounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Payment gateways&lt;/strong&gt;&lt;br&gt;
Local gateways can make a big difference in conversion for hosts targeting specific regions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Custom themes and order forms&lt;/strong&gt;&lt;br&gt;
A modern, fast client area builds trust. I always build child themes so WHMCS updates don't wipe your changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tips before you customize WHMCS
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Never edit core files. Use hooks, modules and child themes.&lt;/li&gt;
&lt;li&gt;Test on a staging copy with the same WHMCS and PHP version.&lt;/li&gt;
&lt;li&gt;Keep modules compatible with the latest WHMCS release and PHP 8.x.&lt;/li&gt;
&lt;li&gt;Sanitize every input and use Capsule (Laravel query builder) instead of raw SQL.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Web design in Kashmir
&lt;/h2&gt;

&lt;p&gt;Kashmir has a growing community of developers and designers working remotely with clients in the US, UK, Europe and the Middle East. Being in UTC+5:30 means a client can send work at the end of their day and wake up to progress.&lt;/p&gt;

&lt;p&gt;For local businesses, a proper website is no longer optional. Hotels, houseboats, handicraft and saffron sellers, schools and clinics all compete online now. What matters most:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast loading on mobile networks&lt;/li&gt;
&lt;li&gt;Clear contact and booking options&lt;/li&gt;
&lt;li&gt;Local SEO (Google Business Profile, location keywords like "Srinagar" or "Kashmir")&lt;/li&gt;
&lt;li&gt;Secure, reliable hosting&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Building a startup in Kashmir
&lt;/h2&gt;

&lt;p&gt;Starting a tech business from Kashmir comes with real challenges: internet shutdowns in the past, limited local investors and a small startup ecosystem. But the upside is real too.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Low costs.&lt;/strong&gt; Running a small team here costs far less than in big metro cities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Global clients.&lt;/strong&gt; Platforms like Fiverr and Upwork let you sell to the world from day one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Government support.&lt;/strong&gt; JKEDI and Startup India schemes offer training, mentorship and funding for new founders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Untapped local market.&lt;/strong&gt; Many Kashmiri businesses still have no website or online store.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My advice for anyone starting out: begin with services to fund yourself, then turn your best repeated work into products. That's how I built WHMCSPilot.com, a set of commercial WHMCS modules and themes that came out of years of client projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I became Top Rated on Fiverr and Upwork
&lt;/h2&gt;

&lt;p&gt;I didn't start with big projects. My first years were spent doing WHMCS installs, hosting website setups and cPanel fixes for small hosting companies. The jobs were small, but they taught me what hosting owners actually need.&lt;/p&gt;

&lt;p&gt;Here's what got me to Top Rated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;I picked a niche.&lt;/strong&gt; Instead of being "a web developer", I became the WHMCS and hosting guy. Clients searching for WHMCS help found me, and I knew the platform better than generalists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I delivered fast and on time.&lt;/strong&gt; Late delivery kills your ranking. I only accepted work I could finish within the deadline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I over communicated.&lt;/strong&gt; Clear updates, screenshots and short videos. Clients never had to ask "what's the status?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I fixed problems others couldn't.&lt;/strong&gt; Broken provisioning, failed migrations, payment gateway errors. Solving the hard stuff earned five star reviews and repeat clients.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I kept order quality high.&lt;/strong&gt; Low cancellations and a high completion rate matter more than order count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I grew my skills with my clients.&lt;/strong&gt; As clients asked for more, I moved into Laravel, NestJS, Next.js, React and AI chatbots, which let me take bigger projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What I'd tell new freelancers in Kashmir
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Start with one skill and get really good at it.&lt;/li&gt;
&lt;li&gt;Write gig descriptions around the client's problem, not your skills.&lt;/li&gt;
&lt;li&gt;Your first 10 reviews matter most, so treat every early client like gold.&lt;/li&gt;
&lt;li&gt;Never risk your account by sharing contact details off platform.&lt;/li&gt;
&lt;li&gt;Be patient. Top Rated took me years of consistent work, not a lucky month.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Web services by Shahid Malla
&lt;/h2&gt;

&lt;p&gt;Here's what I offer to hosting companies, startups and businesses in Kashmir and worldwide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WHMCS development:&lt;/strong&gt; custom modules, hooks, payment gateways, themes and order forms&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WHMCS setup and migration:&lt;/strong&gt; installation, configuration and moving from other billing systems&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting website design:&lt;/strong&gt; marketing sites that match your WHMCS client area&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full stack web apps:&lt;/strong&gt; SaaS platforms in Laravel, NestJS, Next.js and React&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI chatbots:&lt;/strong&gt; support and sales bots trained on your own content&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Business websites:&lt;/strong&gt; fast, SEO ready sites for local Kashmiri businesses&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting support (L2/L3):&lt;/strong&gt; cPanel, server troubleshooting and ongoing maintenance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm Top Rated on Fiverr and Upwork. You can see more of my work at &lt;a href="https://shahidmalla.com" rel="noopener noreferrer"&gt;shahidmalla.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Whether you need a custom WHMCS module, a new website or a partner to build your startup's product, the key is building it right: upgrade safe, secure and fast.&lt;/p&gt;

&lt;p&gt;Got questions about WHMCS, web design or starting up in Kashmir? Drop them in the comments and I'll answer.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>saas</category>
      <category>startup</category>
      <category>webdev</category>
    </item>
    <item>
      <title>how do you divide big instruction into small data set for large projects?</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Mon, 29 Jun 2026 19:39:04 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/how-do-you-divide-big-instruction-into-small-data-set-for-large-projects-23ec</link>
      <guid>https://dev.to/whmcsexpert/how-do-you-divide-big-instruction-into-small-data-set-for-large-projects-23ec</guid>
      <description></description>
      <category>architecture</category>
      <category>discuss</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Building Custom WHMCS Modules with Modern Web Technologies</title>
      <dc:creator>Shahid Malla</dc:creator>
      <pubDate>Fri, 05 Jun 2026 06:24:25 +0000</pubDate>
      <link>https://dev.to/whmcsexpert/building-custom-whmcs-modules-with-modern-web-technologies-3bdm</link>
      <guid>https://dev.to/whmcsexpert/building-custom-whmcs-modules-with-modern-web-technologies-3bdm</guid>
      <description>&lt;h1&gt;
  
  
  Building Custom WHMCS Modules with Modern Web Technologies
&lt;/h1&gt;

&lt;p&gt;WHMCS (Web Host Manager Complete Solution) is a powerful platform for hosting providers, but its real strength lies in its extensibility through custom modules. In this guide, I'll walk you through building professional-grade WHMCS modules using modern web technologies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Build Custom WHMCS Modules?
&lt;/h2&gt;

&lt;p&gt;WHMCS modules allow you to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Extend core functionality without modifying the system&lt;/li&gt;
&lt;li&gt;Create custom integrations with third-party services&lt;/li&gt;
&lt;li&gt;Build automation workflows for your hosting business&lt;/li&gt;
&lt;li&gt;Provide unique features that set your business apart&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started with WHMCS Module Development
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Understanding the Module Structure
&lt;/h3&gt;

&lt;p&gt;WHMCS modules follow a standardized structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;defined&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"WHMCS"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;die&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"This file cannot be accessed directly"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;modulename_MetaData&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'DisplayName'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Module Name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'APIVersion'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'1.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;modulename_Config&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'fields'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Modern Tech Stack
&lt;/h3&gt;

&lt;p&gt;For building robust WHMCS modules, consider using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: PHP 8.0+, Laravel, or Slim Framework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React, Vue.js, or Alpine.js&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: MySQL 8.0+&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Integration&lt;/strong&gt;: REST APIs with proper authentication&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing&lt;/strong&gt;: PHPUnit for unit tests&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Best Practices
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Always validate and sanitize user input&lt;/li&gt;
&lt;li&gt;Use prepared statements to prevent SQL injection&lt;/li&gt;
&lt;li&gt;Implement proper error handling and logging&lt;/li&gt;
&lt;li&gt;Follow WHMCS coding standards&lt;/li&gt;
&lt;li&gt;Document your code thoroughly&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real-World Example: Payment Gateway Integration
&lt;/h2&gt;

&lt;p&gt;Here's a practical example of integrating a payment gateway:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;paymentgateway_Activate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'status'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'description'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Module activated'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;paymentgateway_TestConnection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Test API connection&lt;/span&gt;
    &lt;span class="nv"&gt;$apiKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'api_key'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="c1"&gt;// Validate connection&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'success'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Advanced Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Webhooks and Automation
&lt;/h3&gt;

&lt;p&gt;Create automated workflows by implementing webhook handlers for events like invoice generation, payment processing, and client actions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Custom Admin Pages
&lt;/h3&gt;

&lt;p&gt;Build custom admin interfaces to manage module-specific settings and data with a clean, intuitive UI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Client Portal Integration
&lt;/h3&gt;

&lt;p&gt;Extend the client portal with custom features that enhance user experience and reduce support tickets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Performance Optimization
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Cache frequently accessed data&lt;/li&gt;
&lt;li&gt;Use asynchronous processing for heavy operations&lt;/li&gt;
&lt;li&gt;Optimize database queries&lt;/li&gt;
&lt;li&gt;Implement rate limiting for API endpoints&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Security Considerations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use HTTPS for all API communications&lt;/li&gt;
&lt;li&gt;Implement OAuth2 for secure authentication&lt;/li&gt;
&lt;li&gt;Regularly update dependencies&lt;/li&gt;
&lt;li&gt;Conduct security audits&lt;/li&gt;
&lt;li&gt;Follow OWASP guidelines&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deployment and Maintenance
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use version control (Git)&lt;/li&gt;
&lt;li&gt;Implement CI/CD pipelines&lt;/li&gt;
&lt;li&gt;Monitor module performance&lt;/li&gt;
&lt;li&gt;Keep documentation updated&lt;/li&gt;
&lt;li&gt;Provide regular updates and patches&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building custom WHMCS modules opens up endless possibilities for enhancing your hosting business. By following modern development practices and maintaining clean, secure code, you can create powerful solutions that scale with your business.&lt;/p&gt;

&lt;p&gt;For more resources and to explore advanced WHMCS development, visit &lt;a href="https://shahidmalla.com" rel="noopener noreferrer"&gt;my portfolio&lt;/a&gt; where I showcase various WHMCS projects and integrations.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have you built custom WHMCS modules? Share your experiences and tips in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
